Commit 08f6003c by Qiang Xue

Fixed test break.

parent da48b378
...@@ -171,14 +171,6 @@ class ValidatorTest extends TestCase ...@@ -171,14 +171,6 @@ class ValidatorTest extends TestCase
$this->assertFalse($val->isEmpty(0)); $this->assertFalse($val->isEmpty(0));
$this->assertFalse($val->isEmpty(new \stdClass())); $this->assertFalse($val->isEmpty(new \stdClass()));
$this->assertFalse($val->isEmpty(' ')); $this->assertFalse($val->isEmpty(' '));
// trim
$this->assertTrue($val->isEmpty(' ', true));
$this->assertTrue($val->isEmpty('', true));
$this->assertTrue($val->isEmpty(" \t\n\r\0\x0B", true));
$this->assertTrue($val->isEmpty('', true));
$this->assertFalse($val->isEmpty('0', true));
$this->assertFalse($val->isEmpty(0, true));
$this->assertFalse($val->isEmpty('this ain\'t an empty value', true));
} }
public function testValidateValue() public function testValidateValue()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment