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
22
$this->/** @scrutinizer ignore-call */
23
markTestSkipped(SymfonyKernelBrowser::class.'::loginUser() is only available in Symfony 5.1+.');
Loading history...
23
}
24
25
$this->browser()
26
->throwExceptions()
27
->actingAs(new User('kevin', 'pass'))
28
->visit('/user')
29
->assertSee('user: kevin/pass')
30
;
31
}
32
33
/**
34
* @test
35
*/
36
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
39
$this->/** @scrutinizer ignore-call */
40
expectExceptionMessage('exception thrown');
Loading history...
40
41
$this->browser()
42
->throwExceptions()
43
->visit('/exception')
44
;
45
}
46
47
/**
48
* @test
49
*/
50
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
80
$this->/** @scrutinizer ignore-call */
81
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.