ALPHA 3.0.2a

This commit is contained in:
TheGamecraft
2018-09-10 08:51:18 -04:00
parent 7fe13ae0a7
commit 0e0ef86b71
1404 changed files with 10604 additions and 33714 deletions

View File

@@ -3,20 +3,21 @@
namespace Faker\Test;
use Faker\DefaultGenerator;
use PHPUnit\Framework\TestCase;
class DefaultGeneratorTest extends \PHPUnit_Framework_TestCase
class DefaultGeneratorTest extends TestCase
{
public function testGeneratorReturnsNullByDefault()
{
$generator = new DefaultGenerator;
$this->assertSame(null, $generator->value);
$this->assertNull($generator->value);
}
public function testGeneratorReturnsDefaultValueForAnyPropertyGet()
{
$generator = new DefaultGenerator(123);
$this->assertSame(123, $generator->foo);
$this->assertNotSame(null, $generator->bar);
$this->assertNotNull($generator->bar);
}
public function testGeneratorReturnsDefaultValueForAnyMethodCall()