Skip to content

Instantly share code, notes, and snippets.

@manuelpichler
Created February 20, 2012 19:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save manuelpichler/1870969 to your computer and use it in GitHub Desktop.
Save manuelpichler/1870969 to your computer and use it in GitHub Desktop.
Index: tests/environment.php
===================================================================
--- tests/environment.php (Revision 26)
+++ tests/environment.php (Arbeitskopie)
@@ -1,6 +1,6 @@
<?php
-function __autoload( $classname )
+spl_autoload_register( function( $classname )
{
static $mapping;
@@ -13,7 +13,7 @@
{
require( $mapping[$classname] );
}
-}
+} );
ini_set( 'include_path',
ini_get( 'include_path' )
Index: tests/runner.php
===================================================================
--- tests/runner.php (Revision 26)
+++ tests/runner.php (Arbeitskopie)
@@ -1,6 +1,7 @@
#!/usr/bin/env php
<?php
+require 'PHPUnit/Autoload.php';
require __DIR__ . '/runner/command.php';
arbitTextUiCommand::main();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment