1 | <?php |
||
7 | class CompareUrlTest extends TestCase |
||
8 | { |
||
9 | protected function makeComparativeUrl($currentUrl) |
||
17 | |||
18 | public function testSkipped() |
||
19 | { |
||
20 | $compare = $this->makeComparativeUrl(url('/')); |
||
21 | foreach (config('menu.skippedPaths') as $value) { |
||
22 | $this->assertFalse($compare->isEquals($value)); |
||
23 | } |
||
24 | } |
||
25 | |||
26 | public function testEquals() |
||
41 | |||
42 | public function testPaths() |
||
50 | } |
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.