public function testShouldNotContainShouldThrowExceptionIfOuterElementNotFound() { $this->setSessionExpectation(true); $this->setFindExpectationWithNoElementFoundException('div.main'); $this->context->shouldNotContain('Container', 'SubContainer'); }