| 1 | <?php |
||
| 9 | final class JusticeTest extends PHPUnit_Framework_TestCase |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var Justice |
||
| 13 | */ |
||
| 14 | private $justice; |
||
| 15 | |||
| 16 | protected function setUp() |
||
| 24 | |||
| 25 | public function testFindById() |
||
| 26 | { |
||
| 27 | $justiceRecord = $this->justice->findById(27791394); |
||
| 28 | $this->assertInstanceOf('Defr\Justice\JusticeRecord', $justiceRecord); |
||
| 29 | |||
| 30 | $people = $justiceRecord->getPeople(); |
||
| 31 | $this->assertCount(2, $people); |
||
| 32 | |||
| 33 | $this->assertArrayHasKey('Mgr. ROBERT RUNTÁK', $people); |
||
| 34 | $person = $people['Mgr. ROBERT RUNTÁK']; |
||
| 35 | $this->assertInstanceOf('DateTime', $person->getBirthday()); |
||
| 36 | $this->assertInternalType('string', $person->getAddress()); |
||
| 37 | } |
||
| 38 | |||
| 39 | public function testNotFoundFindId() |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @return bool |
||
| 47 | */ |
||
| 48 | private function isTravis() |
||
| 56 | } |
||
| 57 |