Skip to content

Commit 57db6e8

Browse files
committed
Make it possible to check that something is not in the output
1 parent 440168e commit 57db6e8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

features/bootstrap/FeatureContext.php

+8
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,14 @@ public function theOutputShouldContain(PyStringNode $expectedOutput)
8282
Assertion::contains(StringUtil::trimLines($this->getOutput()), StringUtil::trimLines((string) $expectedOutput));
8383
}
8484

85+
/**
86+
* @Then /^the output should not contain$/
87+
*/
88+
public function theOutputShouldNotContain(PyStringNode $expectedOutput)
89+
{
90+
Assertion::false(strpos(StringUtil::trimLines($this->getOutput()), StringUtil::trimLines((string) $expectedOutput)));
91+
}
92+
8593
private function getOutput()
8694
{
8795
return $this->tester->getDisplay(true);

0 commit comments

Comments
 (0)