/** * @test * @dataProvider typeProvider */ public function Create($inputType, $expectedCacheProvider, $args) { $factory = new CacheProviderDecoratorFactory(); $actualCacheProvider = $factory->create($inputType, ...$args); $this->assertAttributeInstanceOf($expectedCacheProvider, 'cacheProvider', $actualCacheProvider); }
/** * {@inheritdoc} */ public static function create($type, ...$args) { return new DebugCacheProviderDecorator(parent::create($type, ...$args), self::$stopwatch); }