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
17
$this->/** @scrutinizer ignore-call */
18
assertTrue(
Loading history...
18
in_array($needle, array_values($haystack)),
19
"Could not find '{$needle}' in the array ".json_encode($haystack));
20
}
21
22
/**
23
* Assert that an array does not have a value.
24
*
25
* @param $needle
26
* @param array $haystack
27
*/
28
public function assertArrayNotHasValue($needle, array $haystack)
It seems like assertFalse() 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
30
$this->/** @scrutinizer ignore-call */
31
assertFalse(
Loading history...
31
in_array($needle, array_values($haystack)),
32
"Could not find '{$needle}' in the array ".json_encode($haystack));