| @@ 36-42 (lines=7) @@ | ||
| 33 | /** |
|
| 34 | * @throws AuthException |
|
| 35 | */ |
|
| 36 | public function testNothingDoesNothing() |
|
| 37 | { |
|
| 38 | $this->assertTrue($this->auth->addPlugin(new NullPlugin())); |
|
| 39 | $this->assertFalse($this->auth->login('a', 'b')); |
|
| 40 | $this->assertFalse($this->auth->verify()); |
|
| 41 | $this->assertFalse($this->auth->logout()); |
|
| 42 | } |
|
| 43 | ||
| 44 | /** |
|
| 45 | * @throws AuthException |
|
| @@ 47-54 (lines=8) @@ | ||
| 44 | /** |
|
| 45 | * @throws AuthException |
|
| 46 | */ |
|
| 47 | public function testSuccess() |
|
| 48 | { |
|
| 49 | $this->assertTrue($this->auth->addPlugin(new SuccessPlugin())); |
|
| 50 | $this->assertTrue($this->auth->login('a', 'b')); |
|
| 51 | $this->assertTrue($this->auth->verify()); |
|
| 52 | $this->assertTrue($this->auth->logout()); |
|
| 53 | } |
|
| 54 | ||
| 55 | /** |
|
| 56 | * @throws AuthException |
|
| 57 | */ |
|