Created
August 27, 2013 06:12
-
-
Save The-Yoda/6350172 to your computer and use it in GitHub Desktop.
To remove errors because of constants in phpunit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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