1 | <?php |
||
27 | class ProcedureFactoryTest extends \PHPUnit_Framework_TestCase |
||
28 | { |
||
29 | |||
30 | /** +++++++++++++++++++++++++++++++++++ **/ |
||
31 | /** ++++++++++++++ TESTS ++++++++++++++ **/ |
||
32 | /** +++++++++++++++++++++++++++++++++++ **/ |
||
33 | |||
34 | /** |
||
35 | * Test factory can create instance of |
||
36 | * procedure. |
||
37 | * |
||
38 | * @access public |
||
39 | * @return void |
||
40 | */ |
||
41 | public function testFactoryCanCreateInstanceOfProcedure() |
||
52 | |||
53 | /** +++++++++++++++++++++++++++++++++++ **/ |
||
54 | /** ++++++++++ TEST ENTITIES ++++++++++ **/ |
||
55 | /** +++++++++++++++++++++++++++++++++++ **/ |
||
56 | |||
57 | /** |
||
58 | * Get procedure factory instance. |
||
59 | * |
||
60 | * @access protected |
||
61 | * @param \JonnyW\PhantomJs\Engine $engine |
||
62 | * @param \JonnyW\PhantomJs\Parser\ParserInterface $parser |
||
63 | * @param \JonnyW\PhantomJs\Cache\CacheInterface $cacheHandler |
||
64 | * @param \JonnyW\PhantomJs\Template\TemplateRendererInterface $renderer |
||
65 | * @return \JonnyW\PhantomJs\Procedure\ProcedureFactory |
||
66 | */ |
||
67 | protected function getProcedureFactory(Engine $engine, ParserInterface $parser, CacheInterface $cacheHandler, TemplateRendererInterface $renderer) |
||
73 | |||
74 | /** |
||
75 | * Get engine. |
||
76 | * |
||
77 | * @access protected |
||
78 | * @return \JonnyW\PhantomJs\Engine |
||
79 | */ |
||
80 | protected function getEngine() |
||
86 | |||
87 | /** |
||
88 | * Get parser. |
||
89 | * |
||
90 | * @access protected |
||
91 | * @return \JonnyW\PhantomJs\Parser\JsonParser |
||
92 | */ |
||
93 | protected function getParser() |
||
99 | |||
100 | /** |
||
101 | * Get cache. |
||
102 | * |
||
103 | * @access protected |
||
104 | * @param string $cacheDir (default: '') |
||
105 | * @param string $extension (default: 'proc') |
||
106 | * @return \JonnyW\PhantomJs\Cache\FileCache |
||
107 | */ |
||
108 | protected function getCache($cacheDir = '', $extension = 'proc') |
||
114 | |||
115 | /** |
||
116 | * Get template renderer. |
||
117 | * |
||
118 | * @access protected |
||
119 | * @return \JonnyW\PhantomJs\Template\TemplateRenderer |
||
120 | */ |
||
121 | protected function getRenderer() |
||
131 | } |
||
132 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.