Page MenuHomeWickedGov Phorge

RegexTest.php
No OneTemporary

Size
465 B
Referenced Files
None
Subscribers
None

RegexTest.php

<?php
use Eris\Generators;
class RegexTest extends \PHPUnit\Framework\TestCase
{
use Eris\TestTrait;
/**
* Note that * and + modifiers are not supported. @see Generators::regex()
*/
public function testStringsMatchingAParticularRegex()
{
$this->forAll(
Generators::regex("[a-z]{10}")
)
->then(function ($string) {
$this->assertEquals(10, strlen($string));
});
}
}

File Metadata

Mime Type
text/x-php
Expires
Oct 7 2026, 08:49 (6 w, 3 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
ac/cc/5727fd786cd317cdb3f96b4d84f5
Default Alt Text
RegexTest.php (465 B)

Event Timeline