Skip to content

Instantly share code, notes, and snippets.

@xabbuh
Created March 13, 2019 16:14
Show Gist options
  • Save xabbuh/3e67f75c9de4ff7fa6861971641b5793 to your computer and use it in GitHub Desktop.
Save xabbuh/3e67f75c9de4ff7fa6861971641b5793 to your computer and use it in GitHub Desktop.
use Symfony\Component\Validator\Validation;
class TestedTypeTest extends TypeTestCase
{
private $validator;
protected function getExtensions()
{
$validator = Validation::createValidator();
return [
new ValidatorExtension($this->validator),
];
}
// ... your tests
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment