public function testConfig() { $utilities = $this->getMockBuilder('Faker\\Components\\Engine\\Common\\Utilities')->disableOriginalConstructor()->getMock(); $generator = $this->getMock('\\PHPStats\\Generator\\GeneratorInterface'); $locale = $this->getMock('\\Faker\\Locale\\LocaleInterface'); $type = new UniqueString(); $type->setGenerator($generator); $type->setLocale($locale); $type->setUtilities($utilities); $type->setOption('format', 'xxxx'); $type->validate(); $this->assertSame('xxxx', $type->getOption('format')); $type = new UniqueNumber(); $type->setGenerator($generator); $type->setLocale($locale); $type->setUtilities($utilities); $type->setOption('format', 'xxxx'); $type->validate(); $this->assertSame('xxxx', $type->getOption('format')); }