/** * @Then I should see the logging messages */ public function iShouldSeeTheLoggingMessages() { $display = $this->display; Assertion::contains($display, 'purging database'); Assertion::contains($display, 'AppBundle\\DataFixtures\\ORM\\RoleFixture'); Assertion::contains($display, 'AppBundle\\DataFixtures\\ORM\\AdminFixture'); }
/** * @Then /^the output should contain$/ */ public function theOutputShouldContain(PyStringNode $expectedOutput) { Assertion::contains(StringUtil::trimLines($this->getOutput()), StringUtil::trimLines((string) $expectedOutput)); }
public function testValidContains() { Assertion::contains("foo", "foo"); Assertion::contains("foo", "oo"); }
/** * @Then I should see the amount of purged users */ public function iShouldSeeTheAmountOfPurgedUsers() { Assertion::contains($this->display, 'Successfully purged 2 pending activations'); }