public function testTheShouldContainShouldThrowExceptionIfElementNotFound() { $this->setSessionExpectation(true); $this->setFindExpectationWithNoElementFoundException('div.main'); $this->context->theShouldContain('Container', "text"); }
public function testTheShouldContainShouldThrowExceptionOnNonExistentSelector() { $this->setSessionExpectation(false); $this->setExpectedException('\\RuntimeException'); $this->context->theShouldContain('whos dog?', "text"); }