eZ\Bundle\EzPublishCoreBundle\Tests\SignalSlot\SymfonyEventConverterSlotTest::testReceive PHP Méthode

testReceive() public méthode

public testReceive ( )
    public function testReceive()
    {
        $eventDispatcher = $this->getMock('Symfony\\Component\\EventDispatcher\\EventDispatcherInterface');
        $eventDispatcher->expects($this->once())->method('dispatch')->with(MVCEvents::API_SIGNAL, $this->isInstanceOf('eZ\\Publish\\Core\\MVC\\Symfony\\Event\\SignalEvent'));
        $slot = new SymfonyEventConverterSlot($eventDispatcher);
        $slot->receive($this->getMock('eZ\\Publish\\Core\\SignalSlot\\Signal'));
    }
SymfonyEventConverterSlotTest