You are here

public function BlacklistTest::testClassNamePrefixesCanBeBlacklisted in Zircon Profile 8

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

File

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

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 testClassNamePrefixesCanBeBlacklisted() {
  $this->blacklist
    ->addClassNamePrefix('SebastianBergmann\\GlobalState');
  $this
    ->assertTrue($this->blacklist
    ->isStaticAttributeBlacklisted('SebastianBergmann\\GlobalState\\TestFixture\\BlacklistedClass', 'attribute'));
}