You are here

public static function PHPUnit_Framework_Assert::assertAttributeSame in Zircon Profile 8

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

Asserts that a variable and an attribute of an object have the same type and value.

Parameters

mixed $expected:

string $actualAttributeName:

object $actualClassOrObject:

string $message:

1 call to PHPUnit_Framework_Assert::assertAttributeSame()
Framework_AssertTest::testAssertPublicAttributeSame in vendor/phpunit/phpunit/tests/Framework/AssertTest.php
@covers PHPUnit_Framework_Assert::assertAttributeSame

File

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

Class

PHPUnit_Framework_Assert
A set of assert methods.

Code

public static function assertAttributeSame($expected, $actualAttributeName, $actualClassOrObject, $message = '') {
  self::assertSame($expected, self::readAttribute($actualClassOrObject, $actualAttributeName), $message);
}