This repository has been archived on 2026-07-02. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
HomeIsWhereTheMoneyIs/vendor/fzaninotto/faker/test/Faker/DefaultGeneratorTest.php
T
2017-05-24 18:35:30 -05:00

28 lines
710 B
PHP
Executable File

<?php
namespace Faker\Test;
use Faker\DefaultGenerator;
class DefaultGeneratorTest extends \PHPUnit_Framework_TestCase
{
public function testGeneratorReturnsNullByDefault()
{
$generator = new DefaultGenerator;
$this->assertSame(null, $generator->value);
}
public function testGeneratorReturnsDefaultValueForAnyPropertyGet()
{
$generator = new DefaultGenerator(123);
$this->assertSame(123, $generator->foo);
$this->assertNotSame(null, $generator->bar);
}
public function testGeneratorReturnsDefaultValueForAnyMethodCall()
{
$generator = new DefaultGenerator(123);
$this->assertSame(123, $generator->foobar());
}
}