PHP Classes

File: tests/Fakerino/Test/Core/RegEx/RegRevGeneratorTest.php

Recommend this page to a friend!
  Classes of Nicola Pietroluongo  >  Fakerino  >  tests/Fakerino/Test/Core/RegEx/RegRevGeneratorTest.php  >  Download  
File: tests/Fakerino/Test/Core/RegEx/RegRevGeneratorTest.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 code style, add more test for the fake table feature
Date: 4 years ago
Size: 882 bytes


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

namespace Fakerino\Test\Core\RegEx;


RegRevGeneratorTest extends \PHPUnit_Framework_TestCase

    public function
$generator = new RegRevGenerator();
$length = 3;
$expr = '/\d{' . $length . '}/';

$this->assertEquals($length, strlen($generator->generate($expr)));

    public function

$generator = new RegRevGenerator();
$expr = '\\';

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