Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
15 | public function testAuthenticator() |
||
16 | { |
||
17 | $bool = true; |
||
18 | $auth = new CallbackAuthenticator(function () use ($bool) { |
||
19 | return $bool; |
||
20 | }); |
||
21 | $this->assertTrue($auth->authenticate(array('a', 'b'))); |
||
22 | |||
23 | $bool = false; |
||
24 | $auth = new CallbackAuthenticator(function () use ($bool) { |
||
25 | return $bool; |
||
26 | }); |
||
27 | $this->assertFalse($auth->authenticate(array('a', 'b'))); |
||
28 | } |
||
29 | } |
||
30 |