Permalink
Browse files

Upgraded skeleton files

  • Loading branch information...
1 parent fc016cf commit ca289d749c18b4e8b5706e882d5ea782b3c9561b @stuartherbert committed Aug 3, 2011
Showing with 11 additions and 15 deletions.
  1. +1 −1 build.properties
  2. +10 −14 src/tests/unit-tests/bootstrap.php
View
@@ -7,6 +7,6 @@ project.patchLevel=0
checkstyle.standard=Zend
component.type=php-library
-component.version=6
+component.version=7
pear.local = /var/www/${project.channel}
@@ -6,26 +6,22 @@
// A helping hand for running our unit tests
//
// Author Stuart Herbert
-// (stuart.herbert@gradwell.com)
+// (stuart@stuartherbert.com)
//
-// Copyright (c) 2010 Gradwell dot com Ltd
-// All rights reserved
+// Copyright (c) 2011 Stuart Herbert
+// Released under the New BSD license
//
// =========================================================================
-// step 1: create the APP_TOPDIR constant that all MF components require
+// step 1: create the APP_TOPDIR constant that all components require
define('APP_TOPDIR', realpath(__DIR__ . '/../../php'));
define('APP_LIBDIR', realpath(__DIR__ . '/../../../vendor/php'));
define('APP_TESTDIR', realpath(__DIR__ . '/php'));
-// step 2: add the lib-vendor code to the include path
-set_include_path(APP_LIBDIR . PATH_SEPARATOR . get_include_path());
+// step 2: find the autoloader, and install it
+require_once(APP_LIBDIR . '/psr0.autoloader.php');
-// step 3: add the tests folder to the include path
-set_include_path(APP_TESTDIR . PATH_SEPARATOR . get_include_path());
-
-// step 4: add our code to the include path
-set_include_path(APP_TOPDIR . PATH_SEPARATOR . get_include_path());
-
-// step 5: find the autoloader, and install it
-require_once(APP_LIBDIR . '/gwc.autoloader.php');
+// step 3: add the additional paths to the include path
+psr0_autoloader_searchFirst(APP_LIBDIR);
+psr0_autoloader_searchFirst(APP_TESTDIR);
+psr0_autoloader_searchFirst(APP_TOPDIR);

0 comments on commit ca289d7

Please sign in to comment.