1 | <?php |
||
7 | class OrmModelsTest extends \PHPUnit_Framework_TestCase |
||
|
|||
8 | { |
||
9 | |||
10 | |||
11 | /** |
||
12 | * @group OrmModels |
||
13 | * @group PlayerOrm |
||
14 | */ |
||
15 | public function testPlayerOrmGetSet() |
||
16 | { |
||
17 | $rndFiller = new \App\Lib\DsManager\Helpers\RandomFiller(); |
||
18 | $playerM = $rndFiller->getPlayer(); |
||
19 | $arrayPl = $playerM->toArray(); |
||
20 | $playerO = \App\Lib\DsManager\Models\Orm\Player::create($arrayPl); |
||
21 | $this->assertNotEmpty($playerO); |
||
22 | |||
23 | $newPlayer = \App\Lib\DsManager\Models\Player::fromArray($playerO->toArray()); |
||
24 | $this->assertNotEmpty($newPlayer); |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * @group OrmModels |
||
29 | * @group CoachOrm |
||
30 | */ |
||
31 | public function testCoachOrmGetSet() |
||
42 | |||
43 | /** |
||
44 | * @group OrmModels |
||
45 | * @group TeamOrm |
||
46 | */ |
||
47 | public function testTeamOrm() |
||
77 | |||
78 | /** |
||
79 | * @group Match |
||
80 | * @group createnewmatch |
||
81 | */ |
||
82 | public function testCreateNewMatch() |
||
108 | } |
||
109 |
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.