Scalr\Tests\Functional\Api\V2\SpecSchema\Constraint\Validator::isValid PHP Méthode

isValid() public méthode

public isValid ( ) : boolean
Résultat boolean
    public function isValid()
    {
        return empty($this->errors);
    }

Usage Example

 /**
  * {@inheritdoc}
  * @see \PHPUnit_Framework_Constraint::matches()
  */
 protected function matches($other)
 {
     $this->validator->check($other, $this->specObject);
     return $this->validator->isValid();
 }