mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-23 11:29:10 -04:00
ALPHA 3.0.2a
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user