1 | <?php |
||
16 | class DocumentRepositoryTest extends \PHPUnit_Framework_TestCase |
||
17 | { |
||
18 | /** |
||
19 | * @var DocumentRepository |
||
20 | */ |
||
21 | private $repository; |
||
22 | |||
23 | protected function setUp() |
||
27 | |||
28 | /** |
||
29 | * @test |
||
30 | * @expectedException \InvalidArgumentException |
||
31 | */ |
||
32 | public function willFailWhenKeyIsEmpty() |
||
36 | |||
37 | /** |
||
38 | * @test |
||
39 | * @expectedException \KleijnWeb\SwaggerBundle\Document\Exception\ResourceNotReadableException |
||
40 | */ |
||
41 | public function willFailWhenPathDoesNotExist() |
||
45 | |||
46 | /** |
||
47 | * @test |
||
48 | */ |
||
49 | public function gettingDocumentThatDoestExistWillConstructIt() |
||
54 | |||
55 | /** |
||
56 | * @test |
||
57 | */ |
||
58 | public function definitionIsObject() |
||
63 | |||
64 | /** |
||
65 | * @test |
||
66 | */ |
||
67 | public function willCache() |
||
77 | |||
78 | /** |
||
79 | * @test |
||
80 | */ |
||
81 | public function canUsePathPrefix() |
||
87 | } |
||
88 |