public function Framework_AssertTest::testReadAttribute2

@covers PHPUnit_Framework_Assert::readAttribute

File

drupal/core/vendor/phpunit/phpunit/Tests/Framework/AssertTest.php, line 1667

Class

Framework_AssertTest
@package PHPUnit @author Sebastian Bergmann <sebastian@phpunit.de> @author Bernhard Schussek <bschussek@2bepublished.at> @copyright 2001-2013 Sebastian Bergmann <sebastian@phpunit.de> @license …

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'));
}