attribute() public static méthode

Returns a PHPUnit_Framework_Constraint_Attribute matcher object.
public static attribute ( PHPUnit_Framework_Constraint $constraint, string $attributeName ) : PHPUnit_Framework_Constraint_Attribute
$constraint PHPUnit_Framework_Constraint
$attributeName string
Résultat PHPUnit_Framework_Constraint_Attribute
 /**
  * @param string $attributeName
  * @param mixed  $value
  * @param float  $delta
  * @param int    $maxDepth
  * @param bool   $canonicalize
  * @param bool   $ignoreCase
  *
  * @return \PHPUnit_Framework_Constraint_Attribute
  */
 public static function attributeEqualTo($attributeName, $value, $delta = 0.0, $maxDepth = 10, $canonicalize = false, $ignoreCase = false)
 {
     return \PHPUnit_Framework_Assert::attribute(self::equalTo($value, $delta, $maxDepth, $canonicalize, $ignoreCase), $attributeName);
 }
Exemple #2
0
/**
 * Returns a PHPUnit_Framework_Constraint_Attribute matcher object.
 *
 * @param  PHPUnit_Framework_Constraint $constraint
 * @param  string   $attributeName
 * @return PHPUnit_Framework_Constraint_Attribute
 * @since  Method available since Release 3.1.0
 */
function attribute(PHPUnit_Framework_Constraint $constraint, $attributeName)
{
    return PHPUnit_Framework_Assert::attribute($constraint, $attributeName);
}
Exemple #3
0
/**
 * Returns a PHPUnit_Framework_Constraint_Attribute matcher object.
 *
 * @param  PHPUnit_Framework_Constraint $constraint
 * @param  string   $attributeName
 * @return PHPUnit_Framework_Constraint_Attribute
 * @since  Method available since Release 3.1.0
 */
function attribute($constraint, $attributeName)
{
    PHPUnit_Framework_Assert::attribute($constraint, $attributeName);
}