It seems like shouldImplement() 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
14
->/** @scrutinizer ignore-call */
15
shouldImplement(Dictionary::class)
Loading history...
15
;
16
}
17
18
public function it_access_to_value_like_an_array(): void
19
{
20
foreach ($this->getExpectedResult() as $key => $value) {
It seems like getKeys() 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 getValues() 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 shouldYieldLike() 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 shouldHaveCount() 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 getName() 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
58
->/** @scrutinizer ignore-call */
59
getName()
Loading history...
59
->shouldReturn($this->getExpectedName())
60
;
61
}
62
63
abstract protected function getExpectedResult(): array;
64
65
abstract protected function getExpectedName(): string;