Showing 4 of 15 total issues
File EventDispatcherTest.php
has 406 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* test Event Dispatcher class
*
EventDispatcherTest
has 26 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class EventDispatcherTest extends TestCase
{
/**
* name of test event log file
*/
Method testSetEventDispatcherConfiguration
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function testSetEventDispatcherConfiguration($options)
{
$eventDispatcher = new EventDispatcher;
$eventDispatcher->setEventConfiguration($options['events']);
Method testTriggerMultipleEvents
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function testTriggerMultipleEvents()
{
$testData = [];
$instance = new EventDispatcher(['events' => [
'test_event' => [