Conditions | 3 |
Paths | 3 |
Total Lines | 16 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
26 | public function testArrayization(): void |
||
27 | { |
||
28 | if (!class_exists(self::$testedClass)) { |
||
29 | $this->markTestSkipped( |
||
30 | 'Unable to run ' . self::class . '::testArrayization(). Please set ' . self::class |
||
31 | . ':$element to a class-string representing the XML-class being tested', |
||
32 | ); |
||
33 | } elseif (self::$arrayRepresentation === null) { |
||
34 | $this->markTestSkipped( |
||
35 | 'Unable to run ' . self::class . '::testArrayization(). Please set ' . self::class |
||
36 | . ':$arrayRepresentation to an array representing the XML-class being tested', |
||
37 | ); |
||
38 | } else { |
||
39 | $this->assertEquals( |
||
40 | self::$arrayRepresentation, |
||
41 | self::$testedClass::fromArray(self::$arrayRepresentation)->toArray(), |
||
42 | ); |
||
46 |