1 | <?php |
||
20 | class GenerateBundleCommandTest extends BaseTest |
||
21 | { |
||
22 | /** |
||
23 | * test basic calls to command |
||
24 | * |
||
25 | * @param array $options options |
||
26 | * @param string $input cli input |
||
27 | * @param array $expected results to assert |
||
28 | * |
||
29 | * @return void |
||
30 | * |
||
31 | * @dataProvider getInteractiveCommandData |
||
32 | */ |
||
33 | public function testInteractiveCommand($options, $input, $expected) |
||
37 | |||
38 | /** |
||
39 | * get command |
||
40 | * |
||
41 | * @param \Graviton\GeneratorBundle\Generator\BundleGenerator $generator generator |
||
42 | * @param object $input input mock |
||
43 | * |
||
44 | * @return \Graviton\GeneratorBundle\Command\GenerateBundleCommand |
||
45 | */ |
||
46 | protected function getCommand($generator, $input) |
||
59 | |||
60 | /** |
||
61 | * get generator |
||
62 | * |
||
63 | * @return \Graviton\GeneratorBundle\Generator\BundleGenerator |
||
64 | */ |
||
65 | protected function getGenerator() |
||
74 | |||
75 | /** |
||
76 | * get bundle |
||
77 | * |
||
78 | * @return \Graviton\BundleBundle\GravitonBundleInterface |
||
|
|||
79 | * |
||
80 | * @todo move one class up |
||
81 | */ |
||
82 | protected function getBundle() |
||
92 | } |
||
93 |
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.