Tests/SimgroepConcurrentSpiderBundleTest.php
/**
     * @testdox Tests if a customer compilerpass is registered.
     */
@testdox Tests if a customer compilerpass is registered.
@testdox Tests if a customer compilerpass is registered .
public function testIfEventDispatcherIsRegistered()
    {
        $container = $this
            ->getMockBuilder('Symfony\Component\DependencyInjection\ContainerBuilder')
            ->disableOriginalConstructor()
            ->setMethods(['addCompilerPass'])
            ->getMock();
        $container
            ->expects($this->once())
            ->method('addCompilerPass')
            ->with(
                $this->isInstanceOf('Symfony\Component\EventDispatcher\DependencyInjection\RegisterListenersPass'),
                $this->equalTo(PassConfig::TYPE_BEFORE_REMOVING)
            );
        $bundle = new SimgroepConcurrentSpiderBundle();
        $bundle->build($container);
    }
public function testIfEventDispatcherIsRegistered ( ) { $ container = $ this -> getMockBuilder ( 'Symfony\Component\DependencyInjection\ContainerBuilder' ) -> disableOriginalConstructor ( ) -> setMethods ( [ 'addCompilerPass' ] ) -> getMock ( ) ; $ container -> expects ( $ this -> once ( ) ) -> method ( 'addCompilerPass' ) -> with ( $ this -> isInstanceOf ( 'Symfony\Component\EventDispatcher\DependencyInjection\RegisterListenersPass' ) , $ this -> equalTo ( PassConfig :: TYPE_BEFORE_REMOVING ) ) ; $ bundle = new SimgroepConcurrentSpiderBundle ( ) ; $ bundle -> build ( $ container ) ; }
@testdox Tests if a customer compilerpass is registered.
@testdox Tests if a customer compilerpass is registered .