public function testShouldContainShouldThrowExceptionIfOutterElementNotFound() { $this->setSessionExpectation(true); $this->setFindExpectationWithNoElementFoundException('div.main'); $this->context->shouldContain('Container', 'SubContainer'); }
public function testShouldContainShouldThrowExceptionOnNonExistentSelector() { $this->setSessionExpectation(false); $this->setExpectedException('\\RuntimeException'); $this->context->shouldContain('Whos dog?', "dog"); }