| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | <?php |
||
| 21 | public function canRetrieveYamlFileAsJsonString() |
||
| 22 | { |
||
| 23 | $retriever = new YamlCapableUriRetriever(); |
||
| 24 | $result = $retriever->retrieve('file://' . realpath('src/Tests/Functional/PetStore/app/swagger/petstore.yml')); |
||
| 25 | $this->assertInternalType('string', $result); |
||
| 26 | $array = json_decode($result, true); |
||
| 27 | $this->assertNotNull($array); |
||
| 28 | $this->assertInternalType('array', $array); |
||
| 29 | } |
||
| 30 | } |
||
| 31 |