| 1 | <?php |
||
| 19 | class SerializationTest extends AbstractTestCase |
||
| 20 | { |
||
| 21 | public function testIntrospect(): void |
||
| 22 | { |
||
| 23 | $this->assertSame(Serialization::introspect(), [ |
||
| 24 | 'TEXT' => 'text', |
||
| 25 | 'HTML' => 'html', |
||
| 26 | 'XHTML' => 'xhtml', |
||
| 27 | ]); |
||
| 28 | } |
||
| 29 | |||
| 30 | public function testIntrospectKeys(): void |
||
| 31 | { |
||
| 32 | $this->assertSame(Serialization::introspectKeys(), [ |
||
| 33 | 'TEXT', |
||
| 34 | 'HTML', |
||
| 35 | 'XHTML', |
||
| 36 | ]); |
||
| 37 | } |
||
| 38 | |||
| 39 | public function testHasValue(): void |
||
| 40 | { |
||
| 41 | $this->assertTrue(Serialization::hasValue(Serialization::TEXT)); |
||
| 42 | $this->assertTrue(Serialization::hasValue(Serialization::HTML)); |
||
| 43 | $this->assertTrue(Serialization::hasValue(Serialization::XHTML)); |
||
| 44 | |||
| 45 | $this->assertFalse(Serialization::hasValue('nope')); |
||
| 46 | } |
||
| 47 | } |
||
| 48 |