Author: Nicola Pietroluongo (nik.longstone@gmail.com)
Inheritance: extends Fakerino\FakeData\AbstractFakeDataGenerator
Exemplo n.º 1
0
 public function testReturnRandomLine()
 {
     $fileFakeGenerator = new FileFakeGenerator();
     $fileFakeGenerator->setCaller(new FileFake(__DIR__ . '/../Fixtures/file.txt'));
     $generatedString = $fileFakeGenerator->generate();
     $this->assertNotNull($generatedString);
     $this->assertInternalType('string', $generatedString);
 }
Exemplo n.º 2
0
 public function testReturnRandomLine()
 {
     $FileFakeGenerator = new FileFakeGenerator();
     $FileFakeGenerator->setCaller(new FileFake('Surname'));
     $generatedString = $FileFakeGenerator->generate();
     $this->assertNotNull($generatedString);
     $this->assertInternalType('string', $generatedString);
 }