You've already forked php-flasher
mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-04-05 12:32:55 +01:00
28 lines
811 B
PHP
28 lines
811 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Flasher\Tests\Prime\Stamp;
|
|
|
|
use Flasher\Prime\Stamp\UnlessStamp;
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
final class UnlessStampTest extends TestCase
|
|
{
|
|
// Test case for getCondition() method
|
|
public function testGetCondition(): void
|
|
{
|
|
// Create a testable instance of UnlessStamp class
|
|
$unlessStamp = new UnlessStamp(true);
|
|
|
|
// Assert that getCondition correctly returns the value passed in the constructor
|
|
$this->assertTrue($unlessStamp->getCondition());
|
|
|
|
// Create another testable instance of UnlessStamp class
|
|
$unlessStamp = new UnlessStamp(false);
|
|
|
|
// Again assert that getCondition correctly returns the value passed in the constructor
|
|
$this->assertFalse($unlessStamp->getCondition());
|
|
}
|
|
}
|