Total Complexity | 2 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | #[CoversClass(AbstractDsElement::class)] |
||
24 | #[CoversClass(MgmtData::class)] |
||
25 | final class MgmtDataTest extends TestCase |
||
26 | { |
||
27 | use SchemaValidationTestTrait; |
||
28 | use SerializableElementTestTrait; |
||
29 | |||
30 | /** |
||
31 | */ |
||
32 | public static function setUpBeforeClass(): void |
||
33 | { |
||
34 | self::$testedClass = MgmtData::class; |
||
35 | |||
36 | self::$xmlRepresentation = DOMDocumentFactory::fromFile( |
||
37 | dirname(__FILE__, 3) . '/resources/xml/ds_MgmtData.xml', |
||
38 | ); |
||
39 | } |
||
40 | |||
41 | |||
42 | /** |
||
43 | */ |
||
44 | public function testMarshalling(): void |
||
45 | { |
||
46 | $mgmtData = new MgmtData('ManagementData'); |
||
47 | |||
48 | $this->assertEquals( |
||
49 | self::$xmlRepresentation->saveXML(self::$xmlRepresentation->documentElement), |
||
50 | strval($mgmtData), |
||
51 | ); |
||
54 |