Skip to content

Instantly share code, notes, and snippets.

@wowo
Created November 1, 2011 20:16
Show Gist options
  • Save wowo/1331773 to your computer and use it in GitHub Desktop.
Save wowo/1331773 to your computer and use it in GitHub Desktop.
Symfony2 autoload prepared for Mockery
<?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