1 | <?php |
||
18 | class BasicAuthTest extends \PHPUnit_Framework_TestCase |
||
19 | { |
||
20 | protected $excludedUsers = [ |
||
21 | 'root' => 'secret', |
||
22 | 'guest' => null, |
||
23 | ]; |
||
24 | |||
25 | /** |
||
26 | * @covers \Janitor\Excluder\BasicAuth::addUser |
||
27 | * @covers \Janitor\Excluder\BasicAuth::isExcluded |
||
28 | * @covers \Janitor\Excluder\BasicAuth::getAuth |
||
29 | * |
||
30 | * @dataProvider usersProvider |
||
31 | */ |
||
32 | public function testIsExcluded($username, $password) |
||
44 | |||
45 | /** |
||
46 | * Users provider. |
||
47 | * |
||
48 | * @return array |
||
|
|||
49 | */ |
||
50 | public function usersProvider() |
||
57 | |||
58 | /** |
||
59 | * @covers \Janitor\Excluder\BasicAuth::__construct |
||
60 | * @covers \Janitor\Excluder\BasicAuth::isExcluded |
||
61 | * @covers \Janitor\Excluder\BasicAuth::getAuth |
||
62 | */ |
||
63 | public function testIsNotExcluded() |
||
70 | } |
||
71 |
This check looks for the generic type
array
as a return type and suggests a more specific type. This type is inferred from the actual code.