Total Complexity | 4 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
20 | class TypeHydratorTest extends BaseHydratorTest |
||
21 | { |
||
22 | const ID1 = 11111; |
||
23 | const NAME1 = 'login11111'; |
||
24 | |||
25 | const ID2 = 22222; |
||
26 | const NAME2 = 'login22222'; |
||
27 | |||
28 | protected $data = [ |
||
29 | 'id' => self::ID1, |
||
30 | 'name' => self::NAME1, |
||
31 | ]; |
||
32 | |||
33 | public function setUp() |
||
34 | { |
||
35 | $this->hydrator = $this->getHydrator(); |
||
|
|||
36 | } |
||
37 | |||
38 | public function testHydrateNew() |
||
39 | { |
||
40 | $obj = $this->hydrator->hydrate($this->data, Type::class); |
||
41 | $this->checkValues($obj); |
||
42 | } |
||
43 | |||
44 | public function testHydrateOld() |
||
49 | } |
||
50 | |||
51 | public function checkValues($obj) |
||
56 | } |
||
57 | } |
||
58 |