Respect\Validation\Rules\EachTest::testValidatorShouldPassWithOnlyKeyValidation PHP Метод

testValidatorShouldPassWithOnlyKeyValidation() публичный Метод

    public function testValidatorShouldPassWithOnlyKeyValidation()
    {
        $v = new Each(null, $this->getRuleMock(true));
        $result = $v->check(['a', 'b', 'c', 'd', 'e']);
        $this->assertTrue($result);
        $result = $v->assert(['a', 'b', 'c', 'd', 'e']);
        $this->assertTrue($result);
    }