@@ 30-38 (lines=9) @@ | ||
27 | }; |
|
28 | } |
|
29 | ||
30 | public function testCompositeAllFalse() |
|
31 | { |
|
32 | /* @var $request RequestInterface|\PHPUnit_Framework_MockObject_MockObject */ |
|
33 | $request = $this->getMockBuilder(ServerRequestInterface::class)->getMock(); |
|
34 | ||
35 | $composite = new CompositeIsSafe($this->getChecker(false), $this->getChecker(false)); |
|
36 | ||
37 | $this->assertFalse($composite($request)); |
|
38 | } |
|
39 | ||
40 | public function testCompositeOneTrue() |
|
41 | { |
|
@@ 40-48 (lines=9) @@ | ||
37 | $this->assertFalse($composite($request)); |
|
38 | } |
|
39 | ||
40 | public function testCompositeOneTrue() |
|
41 | { |
|
42 | /* @var $request RequestInterface|\PHPUnit_Framework_MockObject_MockObject */ |
|
43 | $request = $this->getMockBuilder(ServerRequestInterface::class)->getMock(); |
|
44 | ||
45 | $composite = new CompositeIsSafe($this->getChecker(false), $this->getChecker(true)); |
|
46 | ||
47 | $this->assertTrue($composite($request)); |
|
48 | } |
|
49 | } |
|
50 |