Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
26 | public function testIsTPropertyTypeValidNonString() |
||
27 | { |
||
28 | $expected = "Input must be a string: AlgoWeb\\ODataMetadata\\MetadataV3\\edm\\TEnumTypeType"; |
||
29 | $actual = null; |
||
30 | |||
31 | $type = new \DateTime(); |
||
32 | $foo = new TEnumTypeType(); |
||
33 | |||
34 | try { |
||
35 | $foo->isTPropertyTypeValid($type); |
||
36 | } catch (\InvalidArgumentException $e) { |
||
37 | $actual = $e->getMessage(); |
||
38 | } |
||
39 | $this->assertEquals($expected, $actual); |
||
40 | } |
||
41 | |||
49 |