Пример #1
0
 public function testGenerate()
 {
     $utilities = $this->getMockBuilder('Faker\\Components\\Engine\\Common\\Utilities')->disableOriginalConstructor()->getMock();
     $generator = $this->getMock('\\PHPStats\\Generator\\GeneratorInterface');
     $locale = $this->getMock('\\Faker\\Locale\\LocaleInterface');
     $type = new Null();
     $type->setGenerator($generator);
     $type->setLocale($locale);
     $type->setUtilities($utilities);
     $type->validate();
     $values = array();
     $this->assertEquals(null, $type->generate(1, $values));
     $this->assertEquals(null, $type->generate(2, $values));
     $this->assertEquals(null, $type->generate(3, $values));
 }