generate() 공개 메소드

public generate ( )
예제 #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);
 }
예제 #2
0
 public function testReturnRandomLine()
 {
     $FileFakeGenerator = new FileFakeGenerator();
     $FileFakeGenerator->setCaller(new FileFake('Surname'));
     $generatedString = $FileFakeGenerator->generate();
     $this->assertNotNull($generatedString);
     $this->assertInternalType('string', $generatedString);
 }