/** * End Checkboxes */ public function testTheFormFieldShouldContainShouldThrowExceptionIfElementNotFound() { $this->setSessionExpectation(true); $this->setFindExpectationWithNoElementFoundException('input[name=first_name]'); $this->context->theFormFieldShouldContain('User Name', "Test Value"); }
public function testTheFormFieldShouldContainShouldThrowExceptionOnNonExistentSelector() { $this->setSessionExpectation(false); $this->setExpectedException('\\RuntimeException'); $this->context->theFormFieldShouldContain('say what', 'value'); }