You are here

public function Framework_AssertTest::testReadAttribute2 in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/tests/Framework/AssertTest.php \Framework_AssertTest::testReadAttribute2()

@covers PHPUnit_Framework_Assert::readAttribute @covers PHPUnit_Framework_Assert::getStaticAttribute @covers PHPUnit_Framework_Assert::getObjectAttribute

File

vendor/phpunit/phpunit/tests/Framework/AssertTest.php, line 1862

Class

Framework_AssertTest
@since Class available since Release 2.0.0

Code

public function testReadAttribute2() {
  $this
    ->assertEquals('foo', $this
    ->readAttribute('ClassWithNonPublicAttributes', 'publicStaticAttribute'));
  $this
    ->assertEquals('bar', $this
    ->readAttribute('ClassWithNonPublicAttributes', 'protectedStaticAttribute'));
  $this
    ->assertEquals('baz', $this
    ->readAttribute('ClassWithNonPublicAttributes', 'privateStaticAttribute'));
  $this
    ->assertEquals('foo', $this
    ->readAttribute('ClassWithNonPublicAttributes', 'protectedStaticParentAttribute'));
  $this
    ->assertEquals('foo', $this
    ->readAttribute('ClassWithNonPublicAttributes', 'privateStaticParentAttribute'));
}