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