It seems like assertTrue() 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
The method interface() does not exist on Sfneal\Testing\Utils\Traits\AssertInterface. Did you maybe mean interface_is_implemented()?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
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.
Loading history...
12
"The interface '{$this->interface()}' does not exist"
It seems like classes() 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
19
foreach ($this->/** @scrutinizer ignore-call */ classes() as $class) {
It seems like assertArrayHasKey() 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
The method methods() does not exist on Sfneal\Testing\Utils\Traits\AssertInterface. Did you maybe mean interface_methods_exist()?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
27
foreach ($this->/** @scrutinizer ignore-call */ methods() as $method) {
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.
Loading history...
28
$this->assertTrue(
29
method_exists($this->interface(), $method),
30
"The interface '{$this->interface()}' does not have the method '{$method}'"