Skip to content

Commit f79c2e6

Browse files
committed
minor #25 Fix the namespace of test classes (nicolas-grekas)
This PR was merged into the main branch. Discussion ---------- Fix the namespace of test classes | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | Tickets | - | License | MIT Commits ------- a59c629 Fix the namespace of test classes
2 parents ecfec2b + a59c629 commit f79c2e6

28 files changed

+60
-68
lines changed

src/Chartjs/Tests/ChartjsBundleTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Tests\Symfony\UX\Chartjs;
12+
namespace Symfony\UX\Chartjs\Tests;
1313

1414
use PHPUnit\Framework\TestCase;
1515
use Symfony\Component\HttpKernel\Kernel;
16-
use Tests\Symfony\UX\Chartjs\Kernel\EmptyAppKernel;
17-
use Tests\Symfony\UX\Chartjs\Kernel\FrameworkAppKernel;
18-
use Tests\Symfony\UX\Chartjs\Kernel\TwigAppKernel;
16+
use Symfony\UX\Chartjs\Tests\Kernel\EmptyAppKernel;
17+
use Symfony\UX\Chartjs\Tests\Kernel\FrameworkAppKernel;
18+
use Symfony\UX\Chartjs\Tests\Kernel\TwigAppKernel;
1919

2020
/**
2121
* @author Titouan Galopin <[email protected]>

src/Chartjs/Tests/Kernel/AppKernelTrait.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\Symfony\UX\Chartjs\Kernel;
12+
namespace Symfony\UX\Chartjs\Tests\Kernel;
1313

1414
/**
1515
* @author Titouan Galopin <[email protected]>

src/Chartjs/Tests/Kernel/EmptyAppKernel.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\Symfony\UX\Chartjs\Kernel;
12+
namespace Symfony\UX\Chartjs\Tests\Kernel;
1313

1414
use Symfony\Component\Config\Loader\LoaderInterface;
1515
use Symfony\Component\HttpKernel\Kernel;

src/Chartjs/Tests/Kernel/FrameworkAppKernel.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\Symfony\UX\Chartjs\Kernel;
12+
namespace Symfony\UX\Chartjs\Tests\Kernel;
1313

1414
use Symfony\Bundle\FrameworkBundle\FrameworkBundle;
1515
use Symfony\Component\Config\Loader\LoaderInterface;

src/Chartjs/Tests/Kernel/TwigAppKernel.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\Symfony\UX\Chartjs\Kernel;
12+
namespace Symfony\UX\Chartjs\Tests\Kernel;
1313

1414
use Symfony\Bundle\FrameworkBundle\FrameworkBundle;
1515
use Symfony\Bundle\TwigBundle\TwigBundle;

src/Chartjs/Tests/Twig/ChartExtensionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Tests\Symfony\UX\Chartjs;
12+
namespace Symfony\UX\Chartjs\Tests;
1313

1414
use PHPUnit\Framework\TestCase;
1515
use Symfony\UX\Chartjs\Builder\ChartBuilderInterface;
1616
use Symfony\UX\Chartjs\Model\Chart;
17-
use Tests\Symfony\UX\Chartjs\Kernel\TwigAppKernel;
17+
use Symfony\UX\Chartjs\Tests\Kernel\TwigAppKernel;
1818
use Twig\Environment;
1919

2020
/**

src/Chartjs/composer.json

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,11 @@
1717
],
1818
"autoload": {
1919
"psr-4": {
20-
"Symfony\\UX\\Chartjs\\": "."
21-
}
22-
},
23-
"autoload-dev": {
24-
"psr-4": {
25-
"Tests\\Symfony\\UX\\Chartjs\\": "./Tests"
26-
}
20+
"Symfony\\UX\\Chartjs\\": ""
21+
},
22+
"exclude-from-classmap": [
23+
"/Tests/"
24+
]
2725
},
2826
"require": {
2927
"php": ">=7.2.5",

src/Cropperjs/Tests/CropperjsBundleTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Tests\Symfony\UX\Cropperjs;
12+
namespace Symfony\UX\Cropperjs\Tests;
1313

1414
use PHPUnit\Framework\TestCase;
1515
use Symfony\Component\HttpKernel\Kernel;
16-
use Tests\Symfony\UX\Cropperjs\Kernel\EmptyAppKernel;
17-
use Tests\Symfony\UX\Cropperjs\Kernel\FrameworkAppKernel;
18-
use Tests\Symfony\UX\Cropperjs\Kernel\TwigAppKernel;
16+
use Symfony\UX\Cropperjs\Tests\Kernel\EmptyAppKernel;
17+
use Symfony\UX\Cropperjs\Tests\Kernel\FrameworkAppKernel;
18+
use Symfony\UX\Cropperjs\Tests\Kernel\TwigAppKernel;
1919

2020
/**
2121
* @author Titouan Galopin <[email protected]>

src/Cropperjs/Tests/Form/CropperTypeTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Tests\Symfony\UX\Cropperjs;
12+
namespace Symfony\UX\Cropperjs\Tests;
1313

1414
use PHPUnit\Framework\TestCase;
1515
use Symfony\Component\Form\FormFactoryInterface;
1616
use Symfony\UX\Cropperjs\Form\CropperType;
17-
use Tests\Symfony\UX\Cropperjs\Kernel\TwigAppKernel;
17+
use Symfony\UX\Cropperjs\Tests\Kernel\TwigAppKernel;
1818
use Twig\Environment;
1919

2020
/**

src/Cropperjs/Tests/Kernel/AppKernelTrait.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\Symfony\UX\Cropperjs\Kernel;
12+
namespace Symfony\UX\Cropperjs\Tests\Kernel;
1313

1414
/**
1515
* @author Titouan Galopin <[email protected]>

0 commit comments

Comments
 (0)