Conditions | 3 |
Paths | 4 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | public function test_truthy() |
||
15 | { |
||
16 | $true = new Truthy('<true>1</true>'); // XML with content eval's to TRUE |
||
17 | static::assertTrue((bool)$true); |
||
18 | if ($true == false) { |
||
|
|||
19 | static::assertFalse(true); |
||
20 | } |
||
21 | |||
22 | $false = new Truthy('<false></false>'); // empty XML eval's to FALSE |
||
23 | static::assertFalse((boolean)$false); |
||
24 | if ($false == true) { |
||
25 | static::assertFalse(true); |
||
26 | } |
||
30 |