You are here

function attribute in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/src/Framework/Assert/Functions.php \attribute()

Returns a PHPUnit_Framework_Constraint_Attribute matcher object.

@since Method available since Release 3.1.0

Parameters

PHPUnit_Framework_Constraint $constraint:

string $attributeName:

Return value

PHPUnit_Framework_Constraint_Attribute

27 string references to 'attribute'
AttributeMetadataTest::testSerialize in vendor/symfony/serializer/Tests/Mapping/AttributeMetadataTest.php
AttributeNodeTest::getSpecificityValueTestData in vendor/symfony/css-selector/Tests/Node/AttributeNodeTest.php
AttributeNodeTest::getToStringConversionTestData in vendor/symfony/css-selector/Tests/Node/AttributeNodeTest.php
BlacklistTest::testClassCanBeBlacklisted in vendor/sebastian/global-state/tests/BlacklistTest.php
BlacklistTest::testClassNamePrefixesCanBeBlacklisted in vendor/sebastian/global-state/tests/BlacklistTest.php

... See full list

File

vendor/phpunit/phpunit/src/Framework/Assert/Functions.php, line 1799

Code

function attribute(PHPUnit_Framework_Constraint $constraint, $attributeName) {
  return call_user_func_array('PHPUnit_Framework_Assert::attribute', func_get_args());
}