* @author James Brooks */ class EventServiceProviderTest extends AbstractTestCase { use EventServiceProviderTrait; public function testIsAnEventServiceProvider() { $class = $this->getServiceProviderClass($this->app); $reflection = new ReflectionClass($class); $provider = new ReflectionClass(ServiceProvider::class); $msg = "Expected class '$class' to be a service provider."; $this->assertTrue($reflection->isSubclassOf($provider), $msg); } }