assertElementContains('.navbar .active a', $text); } /** * @Then the page title should be :text */ public function thePageTitleShouldBe($text) { return $this->assertElementContainsText('title', $text); } /** * @Then the page title should not be :text */ public function thePageTitleShouldNotBe($text) { return $this->assertElementNotContainsText('title', $text); } }