createMock( ServiceOptions::class ), StatsFactory::newNull(), new NullSpi(), static function () { }, 'testWikiId' ); } public function testNewObjectCacheFactory() { $this->assertInstanceOf( ObjectCacheFactory::class, $this->newObjectCacheFactory() ); } public function testNewFromParams() { $factory = $this->newObjectCacheFactory(); $objCache = $factory->newFromParams( [ 'class' => HashBagOStuff::class, 'args' => [ 'foo', 'bar' ], ] ); $this->assertInstanceOf( HashBagOStuff::class, $objCache ); } }