1 | <?php |
||
23 | class TestCase extends WebTestCase |
||
24 | { |
||
25 | /** |
||
26 | * @var Application |
||
27 | */ |
||
28 | protected $app; |
||
29 | |||
30 | /** |
||
31 | * Set up unit. |
||
32 | */ |
||
33 | 54 | public function setUp() |
|
38 | |||
39 | /** |
||
40 | * @return Application |
||
41 | */ |
||
42 | public function createApplication() |
||
46 | |||
47 | /** |
||
48 | * @param ServerRequestInterface $request |
||
49 | * @param array $params |
||
50 | * @param array $headers |
||
51 | * |
||
52 | * @return Response |
||
53 | */ |
||
54 | public function handleRequest(ServerRequestInterface $request, array $params = [], array $headers = []) |
||
74 | |||
75 | /** |
||
76 | * Returns the test database connection. |
||
77 | * |
||
78 | * @return PHPUnit_Extensions_Database_DB_IDatabaseConnection |
||
79 | */ |
||
80 | 54 | protected function getConnection() |
|
93 | |||
94 | /** |
||
95 | * Returns the test dataset. |
||
96 | * |
||
97 | * @return PHPUnit_Extensions_Database_DataSet_IDataSet |
||
98 | */ |
||
99 | 35 | protected function getDataSet() |
|
122 | } |
||
123 |
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.