[3.0.0] Upgraded test scripts and other goodies. Also removed some PHP4 cruft.
[htmlpurifier/darkodev.git] / tests / generate_mock_once.func.php
blob1c74340ba27cd1248634a53d61226162554241a3
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) {
6 $mock_name = $name . 'Mock';
7 if (class_exists($mock_name)) return false;
8 Mock::generate($name, $mock_name);