Fuel\Validation\Rule\ValidatorTest::testValidate PHP Method

testValidate() public method

public testValidate ( )
    public function testValidate()
    {
        $mock = Mockery::mock('Fuel\\Validation\\ValidatableInterface');
        $mock->shouldReceive('run')->with('[email protected]')->once()->andReturn(true);
        $this->object->setParameter($mock);
        $this->assertEquals(true, $this->object->validate('[email protected]'));
    }