| 1 | <?php |
||
| 3 | class LeaguesPageTest extends \TestCase { |
||
|
|
|||
| 4 | |||
| 5 | /** |
||
| 6 | * Test leagues index page and make sure at least one is found |
||
| 7 | */ |
||
| 8 | 1 | public function testLeaguesIndexPage() { |
|
| 14 | |||
| 15 | /** |
||
| 16 | * Make sure admins see their leagues |
||
| 17 | */ |
||
| 18 | 1 | public function testShowAdminsLeagues() { |
|
| 23 | |||
| 24 | /** |
||
| 25 | * Make sure players see their leagues |
||
| 26 | */ |
||
| 27 | 1 | public function testShowPlayersLeagues() { |
|
| 32 | |||
| 33 | /** |
||
| 34 | * But not just anyone |
||
| 35 | */ |
||
| 36 | 1 | public function testShowNewUsersLeagues() { |
|
| 43 | |||
| 44 | /** |
||
| 45 | * Check that the user has as many leagues as asked for |
||
| 46 | * |
||
| 47 | * @param int $expected |
||
| 48 | */ |
||
| 49 | 3 | protected function getUsersLeagues($expected = 0) { |
|
| 55 | |||
| 56 | } |
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.