function testRegularExpression() { $this->assert(Argument::regex('/[a-z]/')->accepts(new RegularExpressionArgument('/[a-z]/'))); $this->assert->not(Argument::regex('/[a-z]/')->accepts(new RegularExpressionArgument('/[a-bc-z]/'))); $this->assert(Argument::regex('/[a-z]+/')->accepts(new ExactArgument('hello world'))); $this->assert->not(Argument::regex('/[a-z]+/')->accepts(new ExactArgument('HELLO WORLD'))); }