%PDF- %PDF-
Direktori : /var/www/html/o91-api/vendor/fzaninotto/faker/test/Faker/ |
Current File : /var/www/html/o91-api/vendor/fzaninotto/faker/test/Faker/DefaultGeneratorTest.php |
<?php namespace Faker\Test; use Faker\DefaultGenerator; use PHPUnit\Framework\TestCase; class DefaultGeneratorTest extends TestCase { public function testGeneratorReturnsNullByDefault() { $generator = new DefaultGenerator; $this->assertNull($generator->value); } public function testGeneratorReturnsDefaultValueForAnyPropertyGet() { $generator = new DefaultGenerator(123); $this->assertSame(123, $generator->foo); $this->assertNotNull($generator->bar); } public function testGeneratorReturnsDefaultValueForAnyMethodCall() { $generator = new DefaultGenerator(123); $this->assertSame(123, $generator->foobar()); } }