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
21
$this->/** @scrutinizer ignore-call */
22
expectExceptionMessage('exception thrown');
Loading history...
22
23
$this->browser()
24
->throwExceptions()
25
->visit('/exception')
26
;
27
}
28
29
/**
30
* @test
31
*/
32
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
62
$this->/** @scrutinizer ignore-call */
63
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.