Permalink
Browse files

Merge remote branch 'remotes/lacyrhoades/test_fixes' into test_fixes

  • Loading branch information...
2 parents 0dc9cb6 + a914c56 commit b28eb4f34db50512d2e8d179d07e07c6d8c18e5d @sirprize committed May 30, 2011
Showing with 16 additions and 7 deletions.
  1. +15 −0 lib/Sirprize/Basecamp.php
  2. +1 −7 tests/TestHelper.php
View
@@ -34,16 +34,31 @@ public function __construct(array $config = array())
{
$this->_baseUri = $config['baseUri'];
}
+ else
+ {
+ require_once 'Sirprize/Basecamp/Exception.php';
+ throw new \Sirprize\Basecamp\Exception("you must set 'baseUri' in constructor config array");
+ }
if(isset($config['username']))
{
$this->_username = $config['username'];
}
+ else
+ {
+ require_once 'Sirprize/Basecamp/Exception.php';
+ throw new \Sirprize\Basecamp\Exception("you must set 'username' in constructor config array");
+ }
if(isset($config['password']))
{
$this->_password = $config['password'];
}
+ else
+ {
+ require_once 'Sirprize/Basecamp/Exception.php';
+ throw new \Sirprize\Basecamp\Exception("you must set 'password' in constructor config array");
+ }
}
View
@@ -60,13 +60,7 @@
/*
* Include PHPUnit dependencies
*/
-require_once 'PHPUnit/Framework.php';
-require_once 'PHPUnit/Framework/IncompleteTestError.php';
-require_once 'PHPUnit/Framework/TestCase.php';
-require_once 'PHPUnit/Framework/TestSuite.php';
-require_once 'PHPUnit/Runner/Version.php';
-require_once 'PHPUnit/TextUI/TestRunner.php';
-require_once 'PHPUnit/Util/Filter.php';
+require_once 'PHPUnit/Autoload.php';
/*
* Set error reporting to the level to which Zend Framework code must comply.

0 comments on commit b28eb4f

Please sign in to comment.