Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
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'); |
||
32 | $account->getHomePage()->equals(IRL::fromString('https://tincanapi.com'))->shouldReturn(true); |
||
33 | $account->getName()->shouldReturn('test'); |
||
34 | } |
||
35 | |||
41 |