1 | <?php |
||
7 | class BooleanEnsuranceTest extends TestCase |
||
8 | { |
||
9 | public function testIsTrue() |
||
10 | { |
||
11 | ensure((2 * 3) === (3 * 2))->isTrue(); |
||
12 | |||
13 | $this->expectException(EnsuranceException::class); |
||
14 | |||
15 | ensure((2 * 2) === (3 * 2))->isTrue(); |
||
16 | } |
||
17 | |||
18 | public function testIsFalse() |
||
19 | { |
||
20 | ensure((2 * 3) === (3 * 3))->isFalse(); |
||
21 | |||
22 | $this->expectException(EnsuranceException::class); |
||
23 | |||
24 | ensure((2 * 3) === (3 * 2))->isFalse(); |
||
25 | } |
||
26 | } |