Merge pull request #996 from cachethq/analysis-8bo3lX
Applied fixes from StyleCI
This commit is contained in:
@@ -43,7 +43,7 @@ class EventServiceProviderTest extends AbstractTestCase
|
|||||||
$this->assertGreaterThan(0, count($map));
|
$this->assertGreaterThan(0, count($map));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @depends testListenerMapIsAnArray
|
* @depends testListenerMapIsAnArray
|
||||||
*/
|
*/
|
||||||
public function testListenerMapEventsExist()
|
public function testListenerMapEventsExist()
|
||||||
@@ -65,12 +65,13 @@ class EventServiceProviderTest extends AbstractTestCase
|
|||||||
$this->assertSame($events, array_keys($map));
|
$this->assertSame($events, array_keys($map));
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function getListenerMap()
|
protected function getListenerMap()
|
||||||
{
|
{
|
||||||
$class = $this->getServiceProviderClass($this->app);
|
$class = $this->getServiceProviderClass($this->app);
|
||||||
$reflection = new ReflectionClass($class);
|
$reflection = new ReflectionClass($class);
|
||||||
$property = $reflection->getProperty('listen');
|
$property = $reflection->getProperty('listen');
|
||||||
$property->setAccessible(true);
|
$property->setAccessible(true);
|
||||||
return $property->getValue(new $class($this->app));
|
|
||||||
}
|
return $property->getValue(new $class($this->app));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user