You are here

public function BlacklistTest::testClassCanBeBlacklisted in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/sebastian/global-state/tests/BlacklistTest.php \SebastianBergmann\GlobalState\BlacklistTest::testClassCanBeBlacklisted()

File

vendor/sebastian/global-state/tests/BlacklistTest.php, line 87

Class

BlacklistTest
@author Sebastian Bergmann <sebastian@phpunit.de> @copyright 2001-2014 Sebastian Bergmann <sebastian@phpunit.de> @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License @link …

Namespace

SebastianBergmann\GlobalState

Code

public function testClassCanBeBlacklisted() {
  $this->blacklist
    ->addClass('SebastianBergmann\\GlobalState\\TestFixture\\BlacklistedClass');
  $this
    ->assertTrue($this->blacklist
    ->isStaticAttributeBlacklisted('SebastianBergmann\\GlobalState\\TestFixture\\BlacklistedClass', 'attribute'));
}