It seems like markTestSkipped() must be provided by classes using this trait. How about adding it as abstract method to this trait?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
23
$this->/** @scrutinizer ignore-call */
24
markTestSkipped(SymfonyKernelBrowser::class.'::loginUser() is only available in Symfony 5.1+.');
Loading history...
24
}
25
26
$this->browser()
27
->throwExceptions()
28
->actingAs(new User('kevin', 'pass'))
29
->visit('/user')
30
->assertSee('user: kevin/pass')
31
;
32
}
33
34
/**
35
* @test
36
*/
37
public function can_enable_exception_throwing(): void
It seems like expectException() must be provided by classes using this trait. How about adding it as abstract method to this trait?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
It seems like expectExceptionMessage() must be provided by classes using this trait. How about adding it as abstract method to this trait?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
40
$this->/** @scrutinizer ignore-call */
41
expectExceptionMessage('exception thrown');
Loading history...
41
42
$this->browser()
43
->throwExceptions()
44
->visit('/exception')
45
;
46
}
47
48
/**
49
* @test
50
*/
51
public function can_re_enable_catching_exceptions(): void
The method assertTrue() does not exist on Zenstruck\Browser\Tests\KernelBrowserTests. Did you maybe mean assert_on()?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
81
$this->/** @scrutinizer ignore-call */
82
assertTrue($profile->hasCollector('request'));
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.