芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/rentandbuyrealty.com/pay/vendor/wixel/gump/tests/Validators/IntegerValidatorTest.php
assertTrue($this->validate(self::RULE, $input)); } public function successProvider() { return [ ['123'], [123], [-1], [0], ['0'], ]; } /** * @dataProvider errorProvider */ public function testError($input) { $this->assertNotTrue($this->validate(self::RULE, $input)); } public function errorProvider() { return [ ['text'], [true], [null], [1.1], ['1.1'], [['array']], ]; } public function testWhenInputIsEmptyAndNotRequiredIsSuccess() { $this->assertTrue($this->validate('integer', '')); } }