| 1 | <?php |
||
| 3 | class AdminPageTest extends TestCase { |
||
|
|
|||
| 4 | |||
| 5 | /** |
||
| 6 | * Make sure public can't access admin pages |
||
| 7 | * |
||
| 8 | * @dataProvider pubUsers |
||
| 9 | * |
||
| 10 | * @param callable $userCb |
||
| 11 | * |
||
| 12 | * @return void |
||
| 13 | */ |
||
| 14 | 2 | public function testMakeSurePublicCantAccess($userCb) { |
|
| 30 | |||
| 31 | /** |
||
| 32 | * Return public users to test with. |
||
| 33 | * Because this is ran before application is created it returns callbacks. |
||
| 34 | * |
||
| 35 | * @return array |
||
| 36 | */ |
||
| 37 | 1 | public function pubUsers() { |
|
| 47 | |||
| 48 | 1 | public function testAdminHomepage() { |
|
| 57 | } |
||
| 58 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.