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
35
$this->/** @scrutinizer ignore-call */
36
markTestSkipped(SymfonyKernelBrowser::class.'::loginUser() is only available in Symfony 5.1+.');
Loading history...
36
}
37
38
$this->browser()
39
->throwExceptions()
40
->actingAs(new User('kevin', 'pass'))
41
->visit('/user')
42
->assertSee('user: kevin/pass')
43
;
44
}
45
46
/**
47
* @test
48
*/
49
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
52
$this->/** @scrutinizer ignore-call */
53
expectExceptionMessage('exception thrown');
Loading history...
53
54
$this->browser()
55
->throwExceptions()
56
->visit('/exception')
57
;
58
}
59
60
/**
61
* @test
62
*/
63
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
93
$this->/** @scrutinizer ignore-call */
94
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.