| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | public function testGettersAndSetters() |
||
| 23 | { |
||
| 24 | $entity = new AbstractAuthor(); |
||
| 25 | $entity->setId(666); |
||
| 26 | $entity->setLink('https://nasa.gov'); |
||
| 27 | $entity->setName('NASA'); |
||
| 28 | |||
| 29 | $this->assertEquals(666, $entity->getId()); |
||
| 30 | $this->assertEquals('https://nasa.gov', $entity->getLink()); |
||
| 31 | $this->assertEquals('NASA', $entity->getName()); |
||
| 32 | $this->assertEquals('NASA', $entity->__toString()); |
||
| 33 | } |
||
| 34 | } |
||
| 35 |