public function testIHoverOverShouldCorrectlySubstituteSelector() { $this->setSessionExpectation(true); $input = $this->getMock('Behat\\Mink\\Element\\NodeElement', array(), array(), '', false, false); $input->expects($this->once())->method('mouseOver')->will($this->returnValue(true)); $this->setFindExpectationWithReturnElement('input[name=picture]', $input); $this->context->iHoverOver('User Picture'); }
public function testIHoverOverShouldThrowExceptionOnNonExistentSelector() { $this->setSessionExpectation(false); $this->setExpectedException('\\RuntimeException'); $this->context->iHoverOver('no idea'); }