radarrplexorganizrnginxsonarrdashboardsabnzbdheimdallembycouchpotatonzbgetbookmarkapplication-dashboardmuximuxlandingpagestartpagelandinghtpcserverhomepage
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
710 B
27 lines
710 B
<?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());
|
|
}
|
|
}
|
|
|