Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | |||
22 | function it_supports_normalizing_accounts() |
||
23 | { |
||
24 | $this->supportsNormalization(AccountFixtures::getTypicalAccount())->shouldBe(true); |
||
25 | } |
||
26 | |||
27 | function it_denormalizes_accounts() |
||
28 | { |
||
29 | $account = $this->denormalize(array('homePage' => 'https://tincanapi.com', 'name' => 'test'), 'Xabbuh\XApi\Model\Account'); |
||
30 | |||
31 | $account->shouldBeAnInstanceOf('Xabbuh\XApi\Model\Account'); |
||
41 |