Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

adjust namespace

  • Loading branch information...
commit 7e565d19f85f5e1bf22eb64dec1788a3e3236028 1 parent 7df697a
@till till authored
View
3  tests/PEAR2/Services/NYTimes/Test/ArticlesearchTest.php
@@ -13,6 +13,8 @@
* @link https://github.com/pear2/Services_NYTimes
*/
+namespace PEAR2\Services\NYTimes\Test;
+
/**
* ArticlesearchTest covers {@link \PEAR2\Services\NYTimes\Articlesearch}.
*
@@ -23,7 +25,6 @@
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License
* @link https://github.com/pear2/Services_NYTimes
*/
-namespace PEAR2\Services\NYTimes;
class ArticlesearchTest extends TestCase
{
/**
View
3  tests/PEAR2/Services/NYTimes/Test/BaseTest.php
@@ -13,6 +13,8 @@
* @link https://github.com/pear2/Services_NYTimes
*/
+namespace PEAR2\Services\NYTimes\Test;
+
/**
* BaseTest covers {@link \PEAR2\Services\NYTimes\Base}.
*
@@ -23,7 +25,6 @@
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License
* @link https://github.com/pear2/Services_NYTimes
*/
-namespace PEAR2\Services\NYTimes;
class BaseTest extends TestCase
{
/**
View
3  tests/PEAR2/Services/NYTimes/Test/MainTest.php
@@ -13,6 +13,8 @@
* @link https://github.com/pear2/Services_NYTimes
*/
+namespace PEAR2\Services\NYTimes\Test;
+
/**
* MainTest covers {@link \PEAR2\Services\NYTimes\Main}.
*
@@ -23,7 +25,6 @@
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License
* @link https://github.com/pear2/Services_NYTimes
*/
-namespace PEAR2\Services\NYTimes;
class MainTest extends TestCase
{
/**
View
3  tests/PEAR2/Services/NYTimes/Test/NewswireTest.php
@@ -13,6 +13,8 @@
* @link https://github.com/pear2/Services_NYTimes
*/
+namespace PEAR2\Services\NYTimes\Test;
+
/**
* NewswireTest covers {@link \PEAR2\Services\NYTimes\Newswire}.
*
@@ -25,7 +27,6 @@
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License
* @link https://github.com/pear2/Services_NYTimes
*/
-namespace PEAR2\Services\NYTimes;
class NewswireTest extends TestCase
{
/**
View
3  tests/PEAR2/Services/NYTimes/Test/TestCase.php
@@ -13,6 +13,8 @@
* @link https://github.com/pear2/Services_NYTimes
*/
+namespace PEAR2\Services\NYTimes\Test;
+
/**
* An abstract TestCase class for test cases.
*
@@ -23,7 +25,6 @@
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License
* @link https://github.com/pear2/Services_NYTimes
*/
-namespace PEAR2\Services\NYTimes;
abstract class TestCase extends \PHPUnit_Framework_TestCase
{
/**
View
5 tests/TestInit.php
@@ -4,7 +4,7 @@
*/
require_once 'PHPUnit/Autoload.php';
-require_once __DIR__ . '/Services/NYTimes/TestCase.php';
+require_once __DIR__ . '/PEAR2/Services/NYTimes/Test/TestCase.php';
/**
* testAutoloader
@@ -16,8 +16,7 @@
function testAutoloader($className) {
if (substr($className, 0, 22) == 'PEAR2\Services\NYTimes') {
- $file = substr($className, 6);
- $file = str_replace("\\", '/', $file);
+ $file = str_replace("\\", '/', $className);
$file .= '.php';
$path = realpath(__DIR__ . '/../src');
Please sign in to comment.
Something went wrong with that request. Please try again.