These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | namespace OpenOrchestra\FunctionalTests\MediaAdminBundle\Controller; |
||
4 | |||
5 | use OpenOrchestra\FunctionalTests\Utils\AbstractFormTest; |
||
6 | |||
7 | /** |
||
8 | * Class MediaControllerTest |
||
9 | * |
||
10 | * @group media |
||
11 | */ |
||
12 | class MediaControllerTest extends AbstractFormTest |
||
13 | { |
||
14 | protected $media; |
||
15 | |||
16 | /** |
||
17 | * Set up the test |
||
18 | */ |
||
19 | public function setUp() |
||
20 | { |
||
21 | parent::setUp(); |
||
22 | |||
23 | $mediaRepository = static::$kernel->getContainer()->get('open_orchestra_media.repository.media'); |
||
24 | $this->media = $mediaRepository->findOneByName('logo Open-Orchestra'); |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * @param string $form |
||
0 ignored issues
–
show
|
|||
29 | */ |
||
30 | public function testMediaForms() |
||
31 | { |
||
32 | $url = '/admin/media/' . $this->media->getId(); |
||
33 | |||
34 | $this->client->request('GET', $url); |
||
35 | |||
36 | $this->assertForm($this->client->getResponse()); |
||
37 | } |
||
38 | } |
||
39 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.