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
23
$this->/** @scrutinizer ignore-call */
24
expectExceptionMessage($message);
Loading history...
24
}
25
}
26
27
/**
28
* Set the expected exception and message when testing a call with invalid arguments to a method.
29
*
30
* @param integer $arg
31
* @param string $type
32
* @param mixed $value
33
* @return void
34
*/
35
protected function setInvalidArgumentException(int $arg, string $type, $value = null)
It seems like expectExceptionMessageRegExp() 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