| 1 | <?php |
||
| 23 | class StringEnvironmentTraitTest extends AbstractTestCase { |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Tests the setEnvironment() method. |
||
| 27 | * |
||
| 28 | * @return void |
||
| 29 | */ |
||
| 30 | public function testSetEnvironment(): void { |
||
| 31 | |||
| 32 | $obj = new TestStringEnvironmentTrait(); |
||
| 33 | |||
| 34 | $obj->setEnvironment("environment"); |
||
| 35 | $this->assertEquals("environment", $obj->getEnvironment()); |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Tests the __construct() method. |
||
| 40 | * |
||
| 41 | * @return void |
||
| 42 | */ |
||
| 43 | public function test__constructor(): void { |
||
| 44 | |||
| 45 | $obj = new TestStringEnvironmentTrait(); |
||
| 46 | |||
| 47 | $this->assertNull($obj->getEnvironment()); |
||
| 48 | } |
||
| 49 | } |
||
| 50 |