Use IDNA2008 for converting domains to ASCII
[htmlpurifier/darkodev.git] / tests / generate_mock_once.func.php
blob98b40a63b98003a895c2ff95db5fd1b246774ea7
1 <?php
3 // since Mocks can't be called from within test files, we need to do
4 // a little jumping through hoops to generate them
5 function generate_mock_once($name)
7 $mock_name = $name . 'Mock';
8 if (class_exists($mock_name, false)) return false;
9 Mock::generate($name, $mock_name);
12 // vim: et sw=4 sts=4