Inputs
'; $assertion = new Zend_Test_PHPUnit_Constraint_DomQuery('input#input-0 @value'); $result = $assertion->evaluate($html, Zend_Test_PHPUnit_Constraint_DomQuery::ASSERT_CONTENT_CONTAINS, 'value1'); $this->assertTrue($result); } /** * @group issue-303 */ public function testShouldAllowMatchingZeroCounts() { $html = ' ZF Issue ZF-4010
Inputs
'; $assertion = new Zend_Test_PHPUnit_Constraint_DomQuery('input#input-3 @value'); $result = $assertion->evaluate($html, Zend_Test_PHPUnit_Constraint_DomQuery::ASSERT_CONTENT_COUNT, 0); $this->assertTrue($result); } }