PHP Classes

File: test.php

Recommend this page to a friend!
  Classes of Patrick Van Bergen  >  PHP Regex Builder  >  test.php  >  Download  
File: test.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP Regex Builder
Generate regular expression strings from rules
Author: By
Last change:
Date: 5 years ago
Size: 540 bytes
 

Contents

Class file image Download
<?php

require_once __DIR__ . '/R.php';

function
test($expected, $got)
{
    if (
$expected != $got) {
        echo
"Expected: " . $expected . " got: " . $got . "\n";
    }
}

require_once
__DIR__ . '/tests/expressions.php';
require_once
__DIR__ . '/tests/modifiers.php';
require_once
__DIR__ . '/tests/quantifiers.php';
require_once
__DIR__ . '/tests/groups.php';
require_once
__DIR__ . '/tests/characters.php';
require_once
__DIR__ . '/tests/lookbehind.php';
require_once
__DIR__ . '/tests/special.php';
require_once
__DIR__ . '/tests/escaping.php';

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