expectException('\LogicException'); $this->expectExceptionMessage(sprintf('Schema of type "%s" can\'t be generated, no describer supports it.', $stringType)); $registry = new ModelRegistry([], new Swagger()); $registry->register(new Model($type)); $registry->registerDefinitions(); } public function unsupportedTypesProvider() { return [ [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true), 'mixed[]'], [new Type(Type::BUILTIN_TYPE_OBJECT, false, self::class), self::class], ]; } }