supportsClass() public method

public supportsClass ( $class )
コード例 #1
0
 /**
  * Tests the supportsClass() method.
  */
 public function testSupportsClass()
 {
     $container = new Container();
     $container->addScope(new Scope(ContaoCoreBundle::SCOPE_FRONTEND));
     $container->enterScope(ContaoCoreBundle::SCOPE_FRONTEND);
     $provider = new ContaoUserProvider($container, $this->framework);
     $this->assertTrue($provider->supportsClass('Contao\\FrontendUser'));
 }
コード例 #2
0
 /**
  * Tests the supportsClass() method.
  */
 public function testSupportsClass()
 {
     $provider = new ContaoUserProvider($this->mockContainerWithContaoScopes(ContaoCoreBundle::SCOPE_FRONTEND), $this->framework);
     $this->assertTrue($provider->supportsClass('Contao\\FrontendUser'));
 }