/
home
/
techb158
/
exp.abdallabala.com
/
vendor
/
respect
/
validation
/
tests
/
unit
/
/home/techb158/exp.abdallabala.com/vendor/respect/validation/tests/unit
mkdir
upload
Name
Size
Mode
Actions
Exceptions/
-
0755
rm
Rules/
-
0755
rm
FactoryTest.php
3627
0644
edit
dl
rm
ValidatorTest.php
986
0644
edit
dl
rm
Edit:
/home/techb158/exp.abdallabala.com/vendor/respect/validation/tests/unit/ValidatorTest.php
(986B)
<?php /* * This file is part of Respect/Validation. * * (c) Alexandre Gomes Gaigalas <alexandre@gaigalas.net> * * For the full copyright and license information, please view the "LICENSE.md" * file that was distributed with this source code. */ namespace Respect\Validation; class ValidatorTest extends TestCase { public function testStaticCreateShouldReturnNewValidator() { $this->assertInstanceOf('Respect\Validation\Validator', Validator::create()); } public function testInvalidRuleClassShouldThrowComponentException() { $this->setExpectedException('Respect\Validation\Exceptions\ComponentException'); Validator::iDoNotExistSoIShouldThrowException(); } /** * Regression test #174. */ public function testShouldReturnValidatorInstanceWhenTheNotRuleIsCalledWithArguments() { $validator = new Validator(); $this->assertSame($validator, $validator->not($validator->notEmpty())); } }
Save
cmd:
run