1 | <?php |
||
19 | class EsprimaTest extends \PHPUnit_Framework_TestCase |
||
20 | { |
||
21 | |||
22 | /** +++++++++++++++++++++++++++++++++++ **/ |
||
23 | /** ++++++++++++++ TESTS ++++++++++++++ **/ |
||
24 | /** +++++++++++++++++++++++++++++++++++ **/ |
||
25 | |||
26 | /** |
||
27 | * Test invalid argument exception is thrown |
||
28 | * if file path is not local file. |
||
29 | * |
||
30 | * @access public |
||
31 | * @return void |
||
32 | */ |
||
33 | public function testInvalidArgumentExceptionIsThrownIfFilePathIsNotLocalFile() |
||
42 | |||
43 | /** |
||
44 | * Test invalid argument exception is thrown if |
||
45 | * file does not exist. |
||
46 | * |
||
47 | * @access public |
||
48 | * @return void |
||
49 | */ |
||
50 | public function testInvalidArgumentIsThrownIfFileDoesNotExist() |
||
59 | |||
60 | /** |
||
61 | * Test engine can be loaded. |
||
62 | * |
||
63 | * @access public |
||
64 | * @return void |
||
65 | */ |
||
66 | public function testEngineCanBeLoaded() |
||
73 | |||
74 | /** |
||
75 | * Test engine can be converted to string. |
||
76 | * |
||
77 | * @access public |
||
78 | * @return void |
||
79 | */ |
||
80 | public function testEngineCanBeCovertedToString() |
||
87 | |||
88 | /** +++++++++++++++++++++++++++++++++++ **/ |
||
89 | /** ++++++++++ TEST ENTITIES ++++++++++ **/ |
||
90 | /** +++++++++++++++++++++++++++++++++++ **/ |
||
91 | |||
92 | /** |
||
93 | * Get esprima. |
||
94 | * |
||
95 | * @access protected |
||
96 | * @return \JonnyW\PhantomJs\Validator\Esprima |
||
97 | */ |
||
98 | protected function getEsprima(FileLocator $fileLocator, $file) |
||
104 | |||
105 | /** |
||
106 | * Get file locator. |
||
107 | * |
||
108 | * @access protected |
||
109 | * @return \Symfony\Component\Config\FileLocator |
||
110 | */ |
||
111 | protected function getFileLocator() |
||
119 | } |
||
120 |