/** * Test that maxLength() returns true if the strings length meets the maximum requirement. */ public function testMaxLength() { $this->assertTrue(Validate::maxLength('This is just right', 20)); $this->assertFalse(Validate::maxLength('This is too far too long', 20)); }