PHP Classes

File: tests/Fakerino/Test/FakeData/Custom/DateTest.php

Recommend this page to a friend!
  Classes of Nicola Pietroluongo   Fakerino   tests/Fakerino/Test/FakeData/Custom/DateTest.php   Download  
File: tests/Fakerino/Test/FakeData/Custom/DateTest.php
Role: Unit test script
Content type: text/plain
Description: Unit test script
Class: Fakerino
Generate fake names and other types of fake data
Author: By
Last change:
Date: 9 years ago
Size: 816 bytes
 

Contents

Class file image Download
<?php
/**
 * This file is part of the Fakerino package.
 *
 * (c) Nicola Pietroluongo <nik.longstone@gmail.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Fakerino\Test\FakeData\Core;

use
Fakerino\FakeData\Custom\Date;

class
DateTest extends \PHPUnit_Framework_TestCase
{
    public function
testDate()
    {
       
$this->assertInstanceOf('Fakerino\FakeData\FakeDataInterface', new Date());
    }

    public function
testGetDefaultOptionString()
    {
       
$data = new Date();

       
$this->assertArrayHasKey('format', $data->getDefaultOptions());
       
$this->assertArrayHasKey('startDate', $data->getDefaultOptions());
       
$this->assertArrayHasKey('endDate', $data->getDefaultOptions());
    }
}