Scalr\Tests\Functional\Api\V2\SpecSchema\Constraint\Validator::checkSample PHP Method

checkSample() protected method

Check each sample element
protected checkSample ( stdClass $element, Property $schema )
$element stdClass sample element not described in properties
$schema Scalr\Tests\Functional\Api\V2\SpecSchema\DataTypes\Property schema each sample element generated of api specification
    protected function checkSample($element, $schema)
    {
        foreach ($element as $value) {
            $this->checkProperty($value, $schema);
        }
    }