You are here

public static function PHPUnit_Framework_Assert::assertAttributeNotEmpty in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/src/Framework/Assert.php \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 vendor/phpunit/phpunit/tests/Framework/AssertTest.php
@covers PHPUnit_Framework_Assert::assertAttributeNotEmpty

File

vendor/phpunit/phpunit/src/Framework/Assert.php, line 630

Class

PHPUnit_Framework_Assert
A set of assert methods.

Code

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