public static function PHPUnit_Framework_Assert::assertAttributeNotEmpty

Asserts that a static attribute of a class or an attribute of an object is not empty.

@since Method available since Release 3.5.0

Parameters

string $haystackAttributeName:

mixed $haystackClassOrObject:

string $message:

1 call to PHPUnit_Framework_Assert::assertAttributeNotEmpty()
Framework_AssertTest::testAssertAttributeNotEmpty in drupal/core/vendor/phpunit/phpunit/Tests/Framework/AssertTest.php
@covers PHPUnit_Framework_Assert::assertAttributeNotEmpty

File

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

Class

PHPUnit_Framework_Assert
A set of assert methods.

Code

public static function assertAttributeNotEmpty($haystackAttributeName, $haystackClassOrObject, $message = '') {
  self::assertNotEmpty(self::readAttribute($haystackClassOrObject, $haystackAttributeName), $message);
}