| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | public function testExportValues() |
||
| 12 | { |
||
| 13 | $this->assertSame('', DoctrineAnnotationDumper::exportValues(null)); |
||
| 14 | $this->assertSame('({})', DoctrineAnnotationDumper::exportValues([])); |
||
| 15 | $this->assertSame('("foo")', DoctrineAnnotationDumper::exportValues("foo")); |
||
| 16 | $this->assertSame('(foo = null)', DoctrineAnnotationDumper::exportValues(["foo"=>null])); |
||
| 17 | $this->assertSame('(foo = 42)', DoctrineAnnotationDumper::exportValues(["foo"=>42])); |
||
| 18 | $this->assertSame('(foo = "bar")', DoctrineAnnotationDumper::exportValues(["foo"=>"bar"])); |
||
| 19 | $this->assertSame('(foo = {"bar":"baz", "baz":"bar"})', DoctrineAnnotationDumper::exportValues(["foo"=>["bar"=>"baz","baz"=>"bar"]])); |
||
| 20 | $this->assertSame('(foo = {"baz", "bar"})', DoctrineAnnotationDumper::exportValues(["foo"=>["baz","bar"]])); |
||
| 21 | |||
| 22 | $this->expectException(\RuntimeException::class); |
||
| 23 | DoctrineAnnotationDumper::exportValues(new Exception()); |
||
| 24 | } |
||
| 25 | } |
||
| 26 |