Skip to content

Commit

Permalink
adjust namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
till committed Apr 20, 2012
1 parent 7df697a commit 7e565d1
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 8 deletions.
3 changes: 2 additions & 1 deletion tests/PEAR2/Services/NYTimes/Test/ArticlesearchTest.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
* @link https://github.com/pear2/Services_NYTimes * @link https://github.com/pear2/Services_NYTimes
*/ */


namespace PEAR2\Services\NYTimes\Test;

/** /**
* ArticlesearchTest covers {@link \PEAR2\Services\NYTimes\Articlesearch}. * ArticlesearchTest covers {@link \PEAR2\Services\NYTimes\Articlesearch}.
* *
Expand All @@ -23,7 +25,6 @@
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License * @license http://www.opensource.org/licenses/bsd-license.php New BSD License
* @link https://github.com/pear2/Services_NYTimes * @link https://github.com/pear2/Services_NYTimes
*/ */
namespace PEAR2\Services\NYTimes;
class ArticlesearchTest extends TestCase class ArticlesearchTest extends TestCase
{ {
/** /**
Expand Down
3 changes: 2 additions & 1 deletion tests/PEAR2/Services/NYTimes/Test/BaseTest.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
* @link https://github.com/pear2/Services_NYTimes * @link https://github.com/pear2/Services_NYTimes
*/ */


namespace PEAR2\Services\NYTimes\Test;

/** /**
* BaseTest covers {@link \PEAR2\Services\NYTimes\Base}. * BaseTest covers {@link \PEAR2\Services\NYTimes\Base}.
* *
Expand All @@ -23,7 +25,6 @@
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License * @license http://www.opensource.org/licenses/bsd-license.php New BSD License
* @link https://github.com/pear2/Services_NYTimes * @link https://github.com/pear2/Services_NYTimes
*/ */
namespace PEAR2\Services\NYTimes;
class BaseTest extends TestCase class BaseTest extends TestCase
{ {
/** /**
Expand Down
3 changes: 2 additions & 1 deletion tests/PEAR2/Services/NYTimes/Test/MainTest.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
* @link https://github.com/pear2/Services_NYTimes * @link https://github.com/pear2/Services_NYTimes
*/ */


namespace PEAR2\Services\NYTimes\Test;

/** /**
* MainTest covers {@link \PEAR2\Services\NYTimes\Main}. * MainTest covers {@link \PEAR2\Services\NYTimes\Main}.
* *
Expand All @@ -23,7 +25,6 @@
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License * @license http://www.opensource.org/licenses/bsd-license.php New BSD License
* @link https://github.com/pear2/Services_NYTimes * @link https://github.com/pear2/Services_NYTimes
*/ */
namespace PEAR2\Services\NYTimes;
class MainTest extends TestCase class MainTest extends TestCase
{ {
/** /**
Expand Down
3 changes: 2 additions & 1 deletion tests/PEAR2/Services/NYTimes/Test/NewswireTest.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
* @link https://github.com/pear2/Services_NYTimes * @link https://github.com/pear2/Services_NYTimes
*/ */


namespace PEAR2\Services\NYTimes\Test;

/** /**
* NewswireTest covers {@link \PEAR2\Services\NYTimes\Newswire}. * NewswireTest covers {@link \PEAR2\Services\NYTimes\Newswire}.
* *
Expand All @@ -25,7 +27,6 @@
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License * @license http://www.opensource.org/licenses/bsd-license.php New BSD License
* @link https://github.com/pear2/Services_NYTimes * @link https://github.com/pear2/Services_NYTimes
*/ */
namespace PEAR2\Services\NYTimes;
class NewswireTest extends TestCase class NewswireTest extends TestCase
{ {
/** /**
Expand Down
3 changes: 2 additions & 1 deletion tests/PEAR2/Services/NYTimes/Test/TestCase.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
* @link https://github.com/pear2/Services_NYTimes * @link https://github.com/pear2/Services_NYTimes
*/ */


namespace PEAR2\Services\NYTimes\Test;

/** /**
* An abstract TestCase class for test cases. * An abstract TestCase class for test cases.
* *
Expand All @@ -23,7 +25,6 @@
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License * @license http://www.opensource.org/licenses/bsd-license.php New BSD License
* @link https://github.com/pear2/Services_NYTimes * @link https://github.com/pear2/Services_NYTimes
*/ */
namespace PEAR2\Services\NYTimes;
abstract class TestCase extends \PHPUnit_Framework_TestCase abstract class TestCase extends \PHPUnit_Framework_TestCase
{ {
/** /**
Expand Down
5 changes: 2 additions & 3 deletions tests/TestInit.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/ */
require_once 'PHPUnit/Autoload.php'; require_once 'PHPUnit/Autoload.php';


require_once __DIR__ . '/Services/NYTimes/TestCase.php'; require_once __DIR__ . '/PEAR2/Services/NYTimes/Test/TestCase.php';


/** /**
* testAutoloader * testAutoloader
Expand All @@ -16,8 +16,7 @@
function testAutoloader($className) { function testAutoloader($className) {
if (substr($className, 0, 22) == 'PEAR2\Services\NYTimes') { if (substr($className, 0, 22) == 'PEAR2\Services\NYTimes') {


$file = substr($className, 6); $file = str_replace("\\", '/', $className);
$file = str_replace("\\", '/', $file);
$file .= '.php'; $file .= '.php';


$path = realpath(__DIR__ . '/../src'); $path = realpath(__DIR__ . '/../src');
Expand Down

0 comments on commit 7e565d1

Please sign in to comment.