| 1 | <?php |
||
| 21 | class TitleTest extends AbstractTestCase |
||
| 22 | { |
||
| 23 | public function testTitle(): void |
||
| 24 | { |
||
| 25 | $title = $this->feed->getTitle(); |
||
| 26 | |||
| 27 | $this->assertEquals(Node::class, Types::getClassOrType($title)); |
||
| 28 | $this->assertEquals('Release notes from signer', (string) $title); |
||
| 29 | $this->assertEquals('Release notes from signer', $title->getValue()); |
||
| 30 | $this->assertEquals(Serialization::TEXT, $title->getSerialization()); |
||
| 31 | } |
||
| 32 | |||
| 33 | public function testTitleAtom10(): void |
||
| 34 | { |
||
| 35 | $title = $this->feed->getTitle('atom10'); |
||
| 36 | |||
| 37 | $this->assertEquals(Node::class, Types::getClassOrType($title)); |
||
| 38 | $this->assertEquals('Release notes from signer', (string) $title); |
||
| 39 | $this->assertEquals('Release notes from signer', $title->getValue()); |
||
| 40 | $this->assertEquals(Serialization::TEXT, $title->getSerialization()); |
||
| 41 | } |
||
| 42 | } |
||
| 43 |