Skip to content

Commit 8970aee

Browse files
committed
update test namespace. update travis config
1 parent 895119e commit 8970aee

12 files changed

+51
-48
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ before_script:
1414
- composer require php-coveralls/php-coveralls:^2.1.0
1515

1616
script:
17-
- phpunit --coverage-clover clover.xml
17+
- phpunit -vvv --coverage-clover clover.xml
1818

1919
after_success:
2020
- vendor/bin/php-coveralls --coverage_clover=clover.xml --json_path=coveralls-upload.json -v

composer.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@
2828
"src/Helper/functions.php"
2929
]
3030
},
31+
"autoload-dev": {
32+
"psr-4": {
33+
"Inhere\\RouteTest\\": "src/"
34+
}
35+
},
3136
"suggest": {
3237
"inhere/simple-print-tool": "Very lightweight data printing tools"
3338
}

test/CachedRouterTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Time: 00:10
77
*/
88

9-
namespace Inhere\Route\Test;
9+
namespace Inhere\RouteTest;
1010

1111
use Inhere\Route\CachedRouter;
1212
use Inhere\Route\Route;
@@ -15,7 +15,7 @@
1515

1616
/**
1717
* Class CachedRouterTest
18-
* @package Inhere\Route\Test
18+
* @package Inhere\RouteTest
1919
*/
2020
class CachedRouterTest extends TestCase
2121
{

test/DispatcherTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Inhere\Route\Test;
3+
namespace Inhere\RouteTest;
44

55
use Inhere\Route\Dispatcher\Dispatcher;
66
use Inhere\Route\Router;

test/PreMatchRouterTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Time: 15:13
77
*/
88

9-
namespace Inhere\Route\Test;
9+
namespace Inhere\RouteTest;
1010

1111
use Inhere\Route\PreMatchRouter;
1212
use Inhere\Route\Route;
@@ -15,7 +15,7 @@
1515

1616
/**
1717
* Class PreMatchRouterTest
18-
* @package Inhere\Route\Test
18+
* @package Inhere\RouteTest
1919
* @covers \Inhere\Route\PreMatchRouter
2020
*/
2121
class PreMatchRouterTest extends TestCase

test/RouteHelperTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
* Time: 23:53
77
*/
88

9-
namespace Inhere\Route\Test;
9+
namespace Inhere\RouteTest;
1010

1111
use Inhere\Route\Helper\RouteHelper;
1212
use PHPUnit\Framework\TestCase;
1313

1414
/**
1515
* Class RouteHelperTest
16-
* @package Inhere\Route\Test
16+
* @package Inhere\RouteTest
1717
*/
1818
class RouteHelperTest extends TestCase
1919
{

test/RouteTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Inhere\Route\Test;
3+
namespace Inhere\RouteTest;
44

55
use Inhere\Route\Route;
66
use PHPUnit\Framework\TestCase;

test/RouterManagerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Time: 12:00
77
*/
88

9-
namespace Inhere\Route\Test;
9+
namespace Inhere\RouteTest;
1010

1111
use Inhere\Route\PreMatchRouter;
1212
use Inhere\Route\Router;
@@ -15,7 +15,7 @@
1515

1616
/**
1717
* Class RouterManagerTest
18-
* @package Inhere\Route\Test
18+
* @package Inhere\RouteTest
1919
* @covers \Inhere\Route\RouterManager
2020
*/
2121
class RouterManagerTest extends TestCase

test/RouterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Inhere\Route\Test;
3+
namespace Inhere\RouteTest;
44

55
use Inhere\Route\Route;
66
use Inhere\Route\Router;

test/SRouterTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Inhere\Route\Test;
3+
namespace Inhere\RouteTest;
44

55
use Inhere\Route\Route;
66
use Inhere\Route\Router;
@@ -9,7 +9,7 @@
99

1010
/**
1111
* Class SRouterTest
12-
* @package Inhere\Route\Test
12+
* @package Inhere\RouteTest
1313
*/
1414
class SRouterTest extends TestCase
1515
{

0 commit comments

Comments
 (0)