You are here

public function BlacklistTest::testImplementorsCanBeBlacklisted in Zircon Profile 8

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

File

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

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 testImplementorsCanBeBlacklisted() {
  $this->blacklist
    ->addImplementorsOf('SebastianBergmann\\GlobalState\\TestFixture\\BlacklistedInterface');
  $this
    ->assertTrue($this->blacklist
    ->isStaticAttributeBlacklisted('SebastianBergmann\\GlobalState\\TestFixture\\BlacklistedImplementor', 'attribute'));
}