We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f400c86 commit 913ca27Copy full SHA for 913ca27
Nethgui/Test/Unit/Nethgui/System/ValidatorTest.php
@@ -609,4 +609,14 @@ public function testCidrBlock()
609
$this->assertFalse($o->evaluate('12.13.14.300/12'));
610
}
611
612
+ public function testBug3044()
613
+ {
614
+ $o = $this->object->integer()->greatThan(0)->lessThan(256);
615
+ $this->assertTrue($o->evaluate('1'));
616
+ $this->assertTrue($o->evaluate('255'));
617
+ $this->assertTrue($o->evaluate('32'));
618
+ $this->assertFalse($o->evaluate('01'));
619
+ $this->assertFalse($o->evaluate(' 1'));
620
+ $this->assertFalse($o->evaluate('255 '));
621
+ }
622
0 commit comments