PHP Classes

File: tests/Fakerino/Test/Core/FakeHandler/DefaultFakerClassTest.php

Recommend this page to a friend!
  Classes of Nicola Pietroluongo  >  Fakerino  >  tests/Fakerino/Test/Core/FakeHandler/DefaultFakerClassTest.php  >  Download  
File: tests/Fakerino/Test/Core/FakeHandler/DefaultFakerClassTest.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: * Fix nested fake bug
* Fix yml parser bug
* Add tests
* Refactor classes
Date: 6 years ago
Size: 769 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\Core\FakeHandler;

use
Fakerino\Core\FakeElement;
use
Fakerino\Core\FakeHandler\DefaultFakerClass;

/**
 * @group handler
 */
class DefaultFakerClassTest extends \PHPUnit_Framework_TestCase
{
    public function
testHandler()
    {
       
$handler = new DefaultFakerClass();
       
$customClass = new FakeElement('GenericString');

       
$this->assertInstanceOf('Fakerino\Core\FakeHandler\Handler', $handler);
       
$this->assertInternalType('string', $handler->handle($customClass));
    }
}

For more information send a message to info at phpclasses dot org.