/** * Tests that the 'notEmpty' rule validates correct values */ public function testNotEmptyRule() { $this->assertTrue(Validator::isNotEmpty('abcdefg')); $this->assertTrue(Validator::isNotEmpty('fasdf ')); $this->assertTrue(Validator::isNotEmpty('fooo' . chr(243) . 'blabla')); $this->assertTrue(Validator::isNotEmpty('abçďĕʑʘπй')); $this->assertTrue(Validator::isNotEmpty('José')); $this->assertTrue(Validator::isNotEmpty('é')); $this->assertTrue(Validator::isNotEmpty('π')); $this->assertFalse(Validator::isNotEmpty("\t ")); $this->assertFalse(Validator::isNotEmpty("")); }