| Total Complexity | 4 |
| Total Lines | 50 |
| Duplicated Lines | 0 % |
| Changes | 3 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 10 | class PropertyHelperTest extends TestCase |
||
| 11 | { |
||
| 12 | public function testCheckNullValueStringSuccess(): void |
||
| 13 | { |
||
| 14 | $key = 'test'; |
||
| 15 | $value = 'me'; |
||
| 16 | $data = [ |
||
| 17 | $key => $value, |
||
| 18 | ]; |
||
| 19 | |||
| 20 | $this->assertEquals( |
||
| 21 | $value, |
||
| 22 | PropertyHelper::checkNullValueString($data, $key) |
||
| 23 | ); |
||
| 24 | } |
||
| 25 | |||
| 26 | public function testCheckNullValueStringUnset(): void |
||
| 27 | { |
||
| 28 | $key = 'test'; |
||
| 29 | $value = 'me'; |
||
| 30 | $data = [ |
||
| 31 | $key => $value, |
||
| 32 | ]; |
||
| 33 | |||
| 34 | $this->assertNull(PropertyHelper::checkNullValueString($data, 'unset')); |
||
| 35 | } |
||
| 36 | |||
| 37 | public function testCheckNullValueIntSuccess(): void |
||
| 48 | ); |
||
| 49 | } |
||
| 50 | |||
| 51 | public function testCheckNullValueIntUnset(): void |
||
| 60 | } |
||
| 61 | } |
||
| 62 |