You are here

public static function PHPUnit_Framework_Assert::assertAttributeInstanceOf in Zircon Profile 8

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

Asserts that an attribute is of a given type.

@since Method available since Release 3.5.0

Parameters

string $expected:

string $attributeName:

mixed $classOrObject:

string $message:

3 calls to PHPUnit_Framework_Assert::assertAttributeInstanceOf()
Framework_AssertTest::testAssertAttributeInstanceOf in vendor/phpunit/phpunit/tests/Framework/AssertTest.php
@covers PHPUnit_Framework_Assert::assertAttributeInstanceOf
PHP_CodeCoverageTest::testConstructor in vendor/phpunit/php-code-coverage/tests/PHP/CodeCoverageTest.php
@covers PHP_CodeCoverage::__construct @covers PHP_CodeCoverage::filter
PHP_CodeCoverageTest::testConstructor2 in vendor/phpunit/php-code-coverage/tests/PHP/CodeCoverageTest.php
@covers PHP_CodeCoverage::__construct @covers PHP_CodeCoverage::filter

File

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

Class

PHPUnit_Framework_Assert
A set of assert methods.

Code

public static function assertAttributeInstanceOf($expected, $attributeName, $classOrObject, $message = '') {
  self::assertInstanceOf($expected, self::readAttribute($classOrObject, $attributeName), $message);
}