public function testEachGeneratorCreatedIsCached() { $factory = new GeneratorFactory(FakerFactory::create()); $this->assertSame($factory->createOrReturnExistingInstance('fr_FR'), $factory->createOrReturnExistingInstance('fr_FR')); }