1 | <?php |
||
17 | class TestCase extends \PHPUnit_Framework_TestCase |
||
18 | { |
||
19 | /** |
||
20 | * @var Application |
||
21 | */ |
||
22 | private $application = null; |
||
23 | |||
24 | /** |
||
25 | * @var string|null |
||
26 | */ |
||
27 | private $root; |
||
28 | |||
29 | /** |
||
30 | * @param string $varname name of the environment variable containing the test-root |
||
31 | * @param string $basename name of the stopfile containing the test-root |
||
32 | * |
||
33 | * @return string|null |
||
34 | */ |
||
35 | public static function getTestMagentoRootFromEnvironment($varname, $basename) |
||
65 | |||
66 | /** |
||
67 | * getter for the magento root directory of the test-suite |
||
68 | * |
||
69 | * @see ApplicationTest::testExecute |
||
70 | * |
||
71 | * @return string |
||
|
|||
72 | */ |
||
73 | public function getTestMagentoRoot() |
||
92 | |||
93 | /** |
||
94 | * @return Application|PHPUnit_Framework_MockObject_MockObject |
||
95 | */ |
||
96 | public function getApplication() |
||
114 | |||
115 | /** |
||
116 | * @return AdapterInterface |
||
117 | */ |
||
118 | public function getDatabaseConnection() |
||
124 | } |
||
125 |
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.