Total Complexity | 3 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
24 | final class KeyNameTest extends TestCase |
||
25 | { |
||
26 | use SchemaValidationTestTrait; |
||
|
|||
27 | use SerializableElementTestTrait; |
||
28 | |||
29 | /** |
||
30 | */ |
||
31 | public static function setUpBeforeClass(): void |
||
32 | { |
||
33 | self::$testedClass = KeyName::class; |
||
34 | |||
35 | self::$schemaFile = dirname(__FILE__, 4) . '/resources/schemas/xmldsig1-schema.xsd'; |
||
36 | |||
37 | self::$xmlRepresentation = DOMDocumentFactory::fromFile( |
||
38 | dirname(__FILE__, 3) . '/resources/xml/ds_KeyName.xml', |
||
39 | ); |
||
40 | } |
||
41 | |||
42 | |||
43 | /** |
||
44 | */ |
||
45 | public function testMarshalling(): void |
||
46 | { |
||
47 | $keyName = new KeyName('testkey'); |
||
48 | |||
49 | $this->assertEquals( |
||
50 | self::$xmlRepresentation->saveXML(self::$xmlRepresentation->documentElement), |
||
51 | strval($keyName), |
||
52 | ); |
||
53 | } |
||
54 | |||
55 | |||
56 | /** |
||
57 | */ |
||
58 | public function testUnmarshalling(): void |
||
65 | ); |
||
66 | } |
||
67 | } |
||
68 |