Skip to content

Commit cf71a96

Browse files
committed
feature #359 Move PHPUnit tests folder into the root folder (bocharsky-bw)
This PR was squashed before being merged into the master branch (closes #359). Discussion ---------- Move PHPUnit tests folder into the root folder Commits ------- 9bf905d Move PHPUnit tests folder into the root folder
2 parents c4b2151 + 9bf905d commit cf71a96

File tree

7 files changed

+9
-6
lines changed

7 files changed

+9
-6
lines changed

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
"psr-4": { "": "src/" },
88
"classmap": [ "app/AppKernel.php", "app/AppCache.php" ]
99
},
10+
"autoload-dev": {
11+
"psr-4": { "Tests\\": "tests/" }
12+
},
1013
"require": {
1114
"php" : ">=5.5.9",
1215
"ext-pdo_sqlite" : "*",

composer.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
<testsuites>
1616
<testsuite name="Project Test Suite">
17-
<directory>src/*Bundle/Tests</directory>
17+
<directory>tests</directory>
1818
</testsuite>
1919
</testsuites>
2020

src/AppBundle/Tests/Controller/Admin/BlogControllerTest.php renamed to tests/AppBundle/Controller/Admin/BlogControllerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace AppBundle\Tests\Controller\Admin;
12+
namespace Tests\AppBundle\Controller\Admin;
1313

1414
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
1515
use Symfony\Component\HttpFoundation\Response;

src/AppBundle/Tests/Controller/BlogControllerTest.php renamed to tests/AppBundle/Controller/BlogControllerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace AppBundle\Tests\Controller;
12+
namespace Tests\AppBundle\Controller;
1313

1414
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
1515
use AppBundle\Entity\Post;

src/AppBundle/Tests/Controller/DefaultControllerTest.php renamed to tests/AppBundle/Controller/DefaultControllerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace AppBundle\Tests\Controller;
12+
namespace Tests\AppBundle\Controller;
1313

1414
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
1515

src/AppBundle/Tests/Utils/SluggerTest.php renamed to tests/AppBundle/Utils/SluggerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Tests\Utils;
12+
namespace Tests\AppBundle\Utils;
1313

1414
use AppBundle\Utils\Slugger;
1515

0 commit comments

Comments
 (0)