Optimized for phpunit