| @@ 22-28 (lines=7) @@ | ||
| 19 | /** |
|
| 20 | * @expectedException Yoghi\Bundle\MaddaBundle\Exception\MaddaException |
|
| 21 | */ |
|
| 22 | public function testReadNotExistFile() |
|
| 23 | { |
|
| 24 | $baseDirectory = __DIR__.'/'; |
|
| 25 | $fileName = 'nonEsite.yml'; |
|
| 26 | $rym = new Reader(); |
|
| 27 | $rym->readYaml($baseDirectory.'/'.$fileName); |
|
| 28 | } |
|
| 29 | ||
| 30 | public function testEmptyReadFile() |
|
| 31 | { |
|
| @@ 47-53 (lines=7) @@ | ||
| 44 | /** |
|
| 45 | * @expectedException Yoghi\Bundle\MaddaBundle\Exception\MaddaException |
|
| 46 | */ |
|
| 47 | public function testReadInvalidFile() |
|
| 48 | { |
|
| 49 | $baseDirectory = __DIR__.'/../Resources/'; |
|
| 50 | $fileName = 'invalidModel.yml'; |
|
| 51 | $rym = new Reader(); |
|
| 52 | $rym->readYaml($baseDirectory.'/'.$fileName); |
|
| 53 | } |
|
| 54 | ||
| 55 | /** |
|
| 56 | * @slowThreshold 10 |
|