We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f30ceb commit f830156Copy full SHA for f830156
tests/Pest.php
@@ -32,9 +32,7 @@
32
expect()->extend('toolTextDoesNotContain', function (mixed ...$needles) {
33
/** @var ToolResult $this->value */
34
$output = implode('', array_column($this->value->toArray()['content'], 'text'));
35
- foreach ($needles as $needle) {
36
- expect($output)->not->toContain($needle);
37
- }
+ expect($output)->not->toContain(...func_get_args());
38
39
return $this;
40
});
0 commit comments