Fuel\Validation\Rule\ValidatorTest::testValidate PHP 메소드

testValidate() 공개 메소드

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]'));
    }