| 1 | <?php  | 
            ||
| 17 | abstract class TestCase extends \PHPUnit_Framework_TestCase  | 
            ||
| 18 | { | 
            ||
| 19 | /**  | 
            ||
| 20 | * @var TestApplication  | 
            ||
| 21 | */  | 
            ||
| 22 | private $testApplication;  | 
            ||
| 23 | |||
| 24 | /**  | 
            ||
| 25 | * getter for the magento root directory of the test-suite  | 
            ||
| 26 | *  | 
            ||
| 27 | * @see ApplicationTest::testExecute  | 
            ||
| 28 | *  | 
            ||
| 29 | * @return string  | 
            ||
| 
                                                                                                    
                        
                         | 
                |||
| 30 | */  | 
            ||
| 31 | public function getTestMagentoRoot()  | 
            ||
| 35 | |||
| 36 | /**  | 
            ||
| 37 | * @return Application|PHPUnit_Framework_MockObject_MockObject  | 
            ||
| 38 | */  | 
            ||
| 39 | public function getApplication()  | 
            ||
| 43 | |||
| 44 | /**  | 
            ||
| 45 | * @return AdapterInterface  | 
            ||
| 46 | */  | 
            ||
| 47 | public function getDatabaseConnection()  | 
            ||
| 53 | |||
| 54 | /**  | 
            ||
| 55 | * @return TestApplication  | 
            ||
| 56 | */  | 
            ||
| 57 | private function getTestApplication()  | 
            ||
| 65 | }  | 
            ||
| 66 | 
This check compares the return type specified in the
@returnannotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.