Example #1
0
	public function testLongString()
	{
		$s = new PropertyString('Name', 5);
		$s->set('mlsdekzjxwcklek');
		$this->assertFalse($s->validate(''));
		$this->assertEquals('Name is too long', $s->errors());
	}
Example #2
0
	public function __construct($name)
	{
		parent::__construct($name, 1024);
	}