1 | <?php |
||
23 | class TestCase extends WebTestCase |
||
24 | { |
||
25 | /** |
||
26 | * @var Application |
||
27 | */ |
||
28 | protected $app; |
||
29 | |||
30 | /** |
||
31 | * Set up unit. |
||
32 | */ |
||
33 | 53 | 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 = []) |
||
69 | |||
70 | /** |
||
71 | * Returns the test database connection. |
||
72 | * |
||
73 | * @return PHPUnit_Extensions_Database_DB_IDatabaseConnection |
||
74 | */ |
||
75 | 53 | protected function getConnection() |
|
88 | |||
89 | /** |
||
90 | * Returns the test dataset. |
||
91 | * |
||
92 | * @return PHPUnit_Extensions_Database_DataSet_IDataSet |
||
93 | */ |
||
94 | 34 | protected function getDataSet() |
|
114 | } |
||
115 |
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.