@@ 15-22 (lines=8) @@ | ||
12 | */ |
|
13 | class LogicalNotTest extends LogicalEvaluatorTest |
|
14 | { |
|
15 | public function testFailIfEvaluatorReturnsTrue() |
|
16 | { |
|
17 | $mock = $this->createMock(); |
|
18 | $this->mockReturns($mock, true); |
|
19 | $evaluator = new LogicalNot($mock); |
|
20 | ||
21 | $this->assertFalse($evaluator->is('2014-01-01')); |
|
22 | } |
|
23 | ||
24 | public function testPassIfEvaluatorReturnsFalse() |
|
25 | { |
|
@@ 24-31 (lines=8) @@ | ||
21 | $this->assertFalse($evaluator->is('2014-01-01')); |
|
22 | } |
|
23 | ||
24 | public function testPassIfEvaluatorReturnsFalse() |
|
25 | { |
|
26 | $mock = $this->createMock(); |
|
27 | $this->mockReturns($mock, false); |
|
28 | $evaluator = new LogicalNot($mock); |
|
29 | ||
30 | $this->assertTrue($evaluator->is('2014-01-01')); |
|
31 | } |
|
32 | } |
|
33 | } |