public function testAnyOf()
 {
     $regex = new VerbalExpressions();
     $regex->startOfLine()->anyOf('a1M')->endOfLine();
     $this->assertTrue($regex->test('a'));
     $this->assertTrue($regex->test('1'));
     $this->assertTrue($regex->test('M'));
     $this->assertFalse($regex->test('b'));
     $this->assertFalse($regex->test(''));
     $this->assertFalse($regex->test(' '));
 }
 public function testRange_sha1()
 {
     $sha1 = new VerbalExpressions();
     $sha1->startOfLine()->range(0, 9, 'a', 'f')->limit(40)->endOfLine();
     $this->assertEquals('/^[0-9a-f]{40}$/m', $sha1->getRegex());
     $this->assertFalse($sha1->test('alphabet'));
     $this->assertFalse($sha1->test('deadbeef'));
     $this->assertFalse($sha1->test(md5('')));
     $this->assertTrue($sha1->test(sha1('')));
 }