Code Duplication    Length = 14-14 lines in 2 locations

api/tests/OrmModelsTest.php 2 locations

@@ 15-28 (lines=14) @@
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
		echo "\n";
21
		print_r($arrayPl);
22
		echo "trying orm";
23
		$playerO = \App\Lib\DsManager\Models\Orm\Player::create($arrayPl);
24
		print_r($playerO->toArray());
25
26
		$newPlayer = \App\Lib\DsManager\Models\Player::fromArray($playerO->toArray());
27
		print_r($newPlayer->toArray());
28
	}
29
30
	/**
31
	 * @group OrmModels
@@ 34-47 (lines=14) @@
31
	 * @group OrmModels
32
	 * @group CoachOrm
33
	 */
34
	public function testCoachOrmGetSet()
35
	{
36
		$rndFiller = new \App\Lib\DsManager\Helpers\RandomFiller();
37
		$coach = $rndFiller->getCoach();
38
		$arrayPl = $coach->toArray();
39
		echo "\n";
40
		print_r($arrayPl);
41
		echo "trying orm";
42
		$coachO = \App\Lib\DsManager\Models\Orm\Coach::create($arrayPl);
43
		print_r($coachO->toArray());
44
45
		$newCoach = \App\Lib\DsManager\Models\Coach::fromArray($coachO->toArray());
46
		print_r($newCoach->toArray());
47
	}
48
49
	/**
50
	 * @group OrmModels