*/ abstract class AbstractEventTestCase extends AbstractAnemicTestCase { protected function objectHasRules() { return false; } public function testEventImplementsTheCorrectInterfaces() { $event = $this->getObjectAndParams()['object']; foreach ($this->getEventInterfaces() as $interface) { $this->assertInstanceOf($interface, $event); } } /*public function testEventHasRegisteredHandlers() { $property = (new ReflectionClass(EventServiceProvider::class))->getProperty('listen'); $property->setAccessible(true); $class = get_class($this->getObjectAndParams()['object']); $mappings = $property->getValue(new EventServiceProvider($this->app)); $this->assertTrue(isset($mappings[$class])); $this->assertGreaterThan(0, count($mappings[$class])); foreach ($mappings[$class] as $handler) { $this->assertInstanceOf($handler, $this->app->make($handler)); } }*/ }