| Total Complexity | 4 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class ContentlessTest extends TestCase |
||
| 10 | { |
||
| 11 | public function testToStringIsEmptyByDefault(): void |
||
| 16 | } |
||
| 17 | |||
| 18 | public function testSetContentThrowsExceptionIfCalledWithNotNull(): void |
||
| 19 | { |
||
| 20 | $this->expectException(\LogicException::class); |
||
| 21 | |||
| 22 | $sut = $this->createContentless(); |
||
| 23 | |||
| 24 | $sut->setContent(12); |
||
| 25 | } |
||
| 26 | |||
| 27 | public function testSetContentDoesNotThrowExceptionIfCalledWithNull(): void |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @return Contentless |
||
| 38 | */ |
||
| 39 | protected function createContentless(): INode |
||
| 44 |