Created
November 1, 2011 20:16
-
-
Save wowo/1331773 to your computer and use it in GitHub Desktop.
Symfony2 autoload prepared for Mockery
This file contains 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
<?php | |
// [...] | |
// you can put it on bottom of the autoload.php | |
if (class_exists('PHPUnit_Runner_Version')) { | |
set_include_path(get_include_path() . PATH_SEPARATOR . __DIR__.'/../vendor/mockery/library/'); | |
require_once('Mockery/Loader.php'); | |
$loader = new \Mockery\Loader; | |
$loader->register(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment