for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Onoi\EventDispatcher\Tests\Listener;
use Onoi\EventDispatcher\Listener\NullEventListener;
/**
* @covers \Onoi\EventDispatcher\Listener\NullEventListener
*
* @group onoi-event-dispatcher
* @license GNU GPL v2+
* @since 1.0
* @author mwjames
*/
class NullEventListenerTest extends \PHPUnit_Framework_TestCase {
public function testCanConstruct() {
$this->assertInstanceOf(
'\Onoi\EventDispatcher\EventListener',
new NullEventListener()
);
'\Onoi\EventDispatcher\Listener\NullEventListener',
}
public function testExecute() {
$instance = new NullEventListener();
$this->assertNull(
$instance->execute()
public function testIsPropagationStopped() {
$this->assertFalse(
$instance->isPropagationStopped()