/** * @dataProvider listTypes */ public function testTypeExists($listTypes) { $this->assertTrue(TypeValidator::typeExists($listTypes)); }
/** * @param $name * @return bool */ private function typeExists($name) { if (false === TypeValidator::typeExists($name)) { throw new \LogicException(sprintf('Not found %s in all types', $name)); } return true; }