/** * Define constants after including files. */ function prepareTemplate(\Text_Template $template) { $template->setVar(array('constants' => '')); $template->setVar(array('wp_constants' => \PHPUnit_Util_GlobalState::getConstantsAsString())); parent::prepareTemplate($template); }