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

Invokes the validation of an element
public check ( mixed $value, AbstractSpecObject $schema )
$value mixed value what we should check
$schema Scalr\Tests\Functional\Api\V2\SpecSchema\DataTypes\AbstractSpecObject schema value generated of api specification
Пример #1
0
 /**
  * {@inheritdoc}
  * @see \PHPUnit_Framework_Constraint::matches()
  */
 protected function matches($other)
 {
     $this->validator->check($other, $this->specObject);
     return $this->validator->isValid();
 }