Commit 17828585 authored by Daniel Hürtgen's avatar Daniel Hürtgen

TASK: Move files from tests/src/ to tests/ folder (flatten structure)

parent d13e6797
Pipeline #344 passed with stage
in 9 minutes and 31 seconds
......@@ -24,7 +24,7 @@
},
"autoload-dev": {
"psr-4": {
"Higidi\\ComposerPhpCSStandardsPlugin\\Tests\\": "tests/src/"
"Higidi\\ComposerPhpCSStandardsPlugin\\Tests\\": "tests/"
}
},
"require": {
......
......@@ -11,8 +11,11 @@
bootstrap="tests/bootstrap.php">
<testsuites>
<testsuite name="Project Test Suite">
<directory>./tests/src/</directory>
<testsuite name="Unit Tests">
<directory>./tests/Unit/</directory>
</testsuite>
<testsuite name="Integration Tests">
<directory>./tests/Integration/</directory>
</testsuite>
</testsuites>
......
......@@ -59,7 +59,7 @@ class FinderTest extends \PHPUnit_Framework_TestCase
public function testFinder()
{
$path = realpath(implode(DIRECTORY_SEPARATOR, array(__DIR__, '..', '..', '..', 'Fixtures', 'Standards')));
$path = realpath(implode(DIRECTORY_SEPARATOR, array(__DIR__, '..', '..', 'Fixtures', 'Standards')));
$expected = array(
$path . DIRECTORY_SEPARATOR . 'Standard1',
$path . DIRECTORY_SEPARATOR . 'Standard2',
......
......@@ -49,7 +49,7 @@ class FactoryTest extends \PHPUnit_Framework_TestCase
{
$path = implode(
DIRECTORY_SEPARATOR,
array(__DIR__, '..', '..', '..', '..', '..', 'Fixtures', 'Standards', 'Standard1')
array(__DIR__, '..', '..', '..', '..', 'Fixtures', 'Standards', 'Standard1')
);
$standard = $this->classUnderTesting->create($path);
......
......@@ -35,7 +35,7 @@ class StandardTest extends \PHPUnit_Framework_TestCase
{
$path = implode(
DIRECTORY_SEPARATOR,
array(__DIR__, '..', '..', '..', '..', '..', 'Fixtures', 'Standards', $standardName)
array(__DIR__, '..', '..', '..', '..', 'Fixtures', 'Standards', $standardName)
);
$ruleSetXmlPath = $path . DIRECTORY_SEPARATOR . 'ruleset.xml';
......@@ -91,7 +91,7 @@ class StandardTest extends \PHPUnit_Framework_TestCase
{
$path = implode(
DIRECTORY_SEPARATOR,
array(__DIR__, '..', '..', '..', '..', '..', 'Fixtures', 'Standards', 'InvalidStandard')
array(__DIR__, '..', '..', '..', '..', 'Fixtures', 'Standards', 'InvalidStandard')
);
new Standard($path);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment