function 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

20 string references to 'attribute'
form_label_test_form in drupal/core/modules/system/tests/modules/form_test/form_test.module
A form for testing form labels and required marks.
form_pre_render_conditional_form_element in drupal/core/includes/form.inc
Adds form element theming to an element if its title or description is set.
Framework_AssertTest::testClassHasPublicAttribute in drupal/core/vendor/phpunit/phpunit/Tests/Framework/AssertTest.php
@covers PHPUnit_Framework_Assert::assertClassHasAttribute
Framework_AssertTest::testClassHasPublicStaticAttribute in drupal/core/vendor/phpunit/phpunit/Tests/Framework/AssertTest.php
@covers PHPUnit_Framework_Assert::assertClassHasStaticAttribute
Framework_AssertTest::testClassNotHasPublicAttribute in drupal/core/vendor/phpunit/phpunit/Tests/Framework/AssertTest.php
@covers PHPUnit_Framework_Assert::assertClassNotHasAttribute

... See full list

File

drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert/Functions.php, line 1795

Code

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