Test/PHPUnit/Constraint/DomQuery34.php

Show: PublicProtectedPrivateinherited
Table of Contents
Zend Framework
LICENSE This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Test  
Subpackage
PHPUnit  
Version
$Id$  

\Zend_Test_PHPUnit_Constraint_DomQuery

Package: Zend_Test\PHPUnit
Zend_Dom_Query-based PHPUnit Constraint
Parent(s)
\PHPUnit_Framework_Constraint
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Uses
 

Constants

>VConstant  ASSERT_QUERY = 'assertQuery'
>VConstant  ASSERT_CONTENT_CONTAINS = 'assertQueryContentContains'
>VConstant  ASSERT_CONTENT_REGEX = 'assertQueryContentRegex'
>VConstant  ASSERT_CONTENT_COUNT = 'assertQueryCount'
>VConstant  ASSERT_CONTENT_COUNT_MIN = 'assertQueryCountMin'
>VConstant  ASSERT_CONTENT_COUNT_MAX = 'assertQueryCountMax'

Properties

Methods

methodpublic__construct(string $path) : void

Constructor; setup constraint state

Parameters
NameTypeDescription
$pathstring

CSS selector path

methodpublicevaluate(string $other,  $assertType = null) : bool

Evaluate an object to see if it fits the constraints

Parameters
NameTypeDescription
$otherstring

String to examine

$assertType
Returns
TypeDescription
bool
methodpublicfail(mixed $other, string $description, bool $not = false) : void

Report Failure

Parameters
NameTypeDescription
$othermixed

CSS selector path

$descriptionstring
$notbool
Throws
ExceptionDescription
\PHPUnit_Framework_ExpectationFailedException
Details
See
for implementation details  
methodpublicregisterXpathNamespaces(array $xpathNamespaces) : void

Register XPath namespaces

Parameters
NameTypeDescription
$xpathNamespacesarray
methodpublicsetNegate(bool $flag = true) : void

Indicate negative match

Parameters
NameTypeDescription
$flagbool
methodpublicsetUseXpath(bool $flag = true) : \Zend_Test_PHPUnit_Constraint_DomQuery

Whether or not path is a straight XPath expression

Parameters
NameTypeDescription
$flagbool
Returns
TypeDescription
\Zend_Test_PHPUnit_Constraint_DomQuery
methodpublictoString() : string

Complete implementation

Returns
TypeDescription
string
Documentation was generated by phpDocumentor 2.2.0 .