/** * register autoloader * * @param string $dirname base directory path. * @return void */ public static function register($dirname = null) { if (is_null($dirname)) { $dirname = dirname(__FILE__); } self::$base_dir = $dirname; spl_autoload_register(array(__CLASS__, "autoload")); }
<?php require dirname(dirname(__FILE__)) . "/Jira/Autoloader.php"; Jira_Autoloader::register(); require_once "Jira/Api/MockClient.php";