Skip to content

Instantly share code, notes, and snippets.

@The-Yoda
Created August 27, 2013 06:12
Show Gist options
  • Save The-Yoda/6350172 to your computer and use it in GitHub Desktop.
Save The-Yoda/6350172 to your computer and use it in GitHub Desktop.
To remove errors because of constants in phpunit
public function prepareTemplate( Text_Template $template ) {
$template->setVar( array(
'constants' => '',
'zz_constants' => PHPUnit_Util_GlobalState::getConstantsAsString()
));
parent::prepareTemplate( $template );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment