public function testCanConstruct() { $instance = new EventDispatcherFactory(); $this->assertInstanceOf('\\Onoi\\EventDispatcher\\EventDispatcherFactory', $instance); $this->assertInstanceOf('\\Onoi\\EventDispatcher\\EventDispatcherFactory', EventDispatcherFactory::getInstance()); EventDispatcherFactory::clear(); }