| Total Complexity | 2 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class TextContentTest extends TestCase |
||
| 13 | { |
||
| 14 | public function testSerializePrimaryOnly(): void |
||
| 15 | { |
||
| 16 | $primaryText = Text::create('primaryText'); |
||
| 17 | |||
| 18 | $textContent = TextContent::create($primaryText); |
||
| 19 | |||
| 20 | $this->assertEquals(new ArrayObject([ |
||
| 21 | 'primaryText' => $primaryText, |
||
| 22 | ]), $textContent->jsonSerialize()); |
||
| 23 | } |
||
| 24 | |||
| 25 | public function testSerializeAll(): void |
||
| 38 | } |
||
| 39 | } |
||
| 40 |