1 | <?php |
||
22 | class TestCase extends WebTestCase |
||
23 | { |
||
24 | /** |
||
25 | * @var Application |
||
26 | */ |
||
27 | protected $app; |
||
28 | |||
29 | /** |
||
30 | * Set up unit. |
||
31 | */ |
||
32 | 54 | public function setUp() |
|
37 | |||
38 | /** |
||
39 | * @return Application |
||
40 | */ |
||
41 | public function createApplication() |
||
45 | |||
46 | /** |
||
47 | * @param ServerRequestInterface $request |
||
48 | * @param array $params |
||
49 | * @param array $headers |
||
50 | * |
||
51 | * @return Response |
||
52 | */ |
||
53 | public function handleRequest(ServerRequestInterface $request, array $params = [], array $headers = []) |
||
73 | |||
74 | /** |
||
75 | * Returns the test database connection. |
||
76 | * |
||
77 | * @return \PHPUnit_Extensions_Database_DB_IDatabaseConnection|null |
||
78 | */ |
||
79 | 54 | protected function getConnection() |
|
92 | |||
93 | /** |
||
94 | * Returns the test dataset. |
||
95 | * |
||
96 | * @return PHPUnit_Extensions_Database_DataSet_IDataSet |
||
97 | */ |
||
98 | 35 | protected function getDataSet() |
|
121 | } |
||
122 |
If a method or function can return multiple different values and unless you are sure that you only can receive a single value in this context, we recommend to add an additional type check:
If this a common case that PHP Analyzer should handle natively, please let us know by opening an issue.