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