1 | <?php |
||
2 | |||
3 | declare(strict_types=1); |
||
4 | |||
5 | namespace App\Tests\Functional; |
||
6 | |||
7 | use PHPUnit\Framework\TestCase; |
||
8 | use Yiisoft\Yii\Testing\FunctionalTester; |
||
9 | |||
10 | final class SiteControllerTest extends TestCase |
||
11 | { |
||
12 | private ?FunctionalTester $tester; |
||
13 | |||
14 | protected function setUp(): void |
||
15 | { |
||
16 | $this->tester = new FunctionalTester(); |
||
17 | } |
||
18 | |||
19 | public function testGetIndex() |
||
20 | { |
||
21 | $method = 'GET'; |
||
22 | $url = '/'; |
||
23 | |||
24 | $this->tester->bootstrapApplication(dirname(__DIR__, 2)); |
||
0 ignored issues
–
show
|
|||
25 | $response = $this->tester->doRequest($method, $url); |
||
26 | |||
27 | $this->assertStringContainsString( |
||
28 | 'Don\'t forget to check the guide', |
||
29 | $response->getContent() |
||
30 | ); |
||
31 | } |
||
32 | } |
||
33 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.