PHP Class Bluz\Tests\Validator\Rule\NegativeTest

Inheritance: extends Bluz\Tests\TestCase
Show file Open project: bluzphp/framework

Protected Properties

Property Type Description
$validator Bluz\Validator\Rule\Negative

Public Methods

Method Description
providerForFail ( ) : array
providerForPass ( ) : array
testNegativeShouldPass ( $input )
testNotNegativeNumbersShouldThrowNegativeException ( $input )

Protected Methods

Method Description
setUp ( ) Setup validator instance

Method Details

providerForFail() public method

public providerForFail ( ) : array
return array

providerForPass() public method

public providerForPass ( ) : array
return array

setUp() protected method

Setup validator instance
protected setUp ( )

testNegativeShouldPass() public method

public testNegativeShouldPass ( $input )

testNotNegativeNumbersShouldThrowNegativeException() public method

Property Details

$validator protected property

protected Negative,Bluz\Validator\Rule $validator
return Bluz\Validator\Rule\Negative