Skip to content

Commit de5d5bc

Browse files
committed
chore: extract ApiTestCase in it's own api-platform/test package
1 parent 61c6dee commit de5d5bc

9 files changed

Lines changed: 46 additions & 8 deletions

File tree

src/Symfony/Bundle/Test/ApiTestAssertionsTrait.php renamed to src/Test/ApiTestAssertionsTrait.php

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

1212
declare(strict_types=1);
1313

14-
namespace ApiPlatform\Symfony\Bundle\Test;
14+
namespace ApiPlatform\Test;
1515

1616
use ApiPlatform\JsonSchema\BackwardCompatibleSchemaFactory;
1717
use ApiPlatform\JsonSchema\Schema;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
declare(strict_types=1);
1313

14-
namespace ApiPlatform\Symfony\Bundle\Test;
14+
namespace ApiPlatform\Test;
1515

1616
use ApiPlatform\Metadata\IriConverterInterface;
1717
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
declare(strict_types=1);
1313

14-
namespace ApiPlatform\Symfony\Bundle\Test;
14+
namespace ApiPlatform\Test;
1515

1616
use Symfony\Bundle\FrameworkBundle\KernelBrowser;
1717
use Symfony\Component\BrowserKit\CookieJar;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
declare(strict_types=1);
1313

14-
namespace ApiPlatform\Symfony\Bundle\Test;
14+
namespace ApiPlatform\Test;
1515

1616
trait ClientTrait
1717
{

src/Symfony/Bundle/Test/Constraint/ArraySubset.php renamed to src/Test/Constraint/ArraySubset.php

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

1212
declare(strict_types=1);
1313

14-
namespace ApiPlatform\Symfony\Bundle\Test\Constraint;
14+
namespace ApiPlatform\Test\Constraint;
1515

1616
use PHPUnit\Framework\Constraint\Constraint;
1717

src/Symfony/Bundle/Test/Constraint/ArraySubsetTrait.php renamed to src/Test/Constraint/ArraySubsetTrait.php

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

1212
declare(strict_types=1);
1313

14-
namespace ApiPlatform\Symfony\Bundle\Test\Constraint;
14+
namespace ApiPlatform\Test\Constraint;
1515

1616
use SebastianBergmann\Comparator\ComparisonFailure;
1717
use SebastianBergmann\Exporter\Exporter;

src/Symfony/Bundle/Test/Constraint/MatchesJsonSchema.php renamed to src/Test/Constraint/MatchesJsonSchema.php

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

1212
declare(strict_types=1);
1313

14-
namespace ApiPlatform\Symfony\Bundle\Test\Constraint;
14+
namespace ApiPlatform\Test\Constraint;
1515

1616
use JsonSchema\Validator;
1717
use PHPUnit\Framework\Constraint\Constraint;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
declare(strict_types=1);
1313

14-
namespace ApiPlatform\Symfony\Bundle\Test;
14+
namespace ApiPlatform\Test;
1515

1616
use Symfony\Component\BrowserKit\Response as BrowserKitResponse;
1717
use Symfony\Component\HttpClient\Exception\ClientException;

src/Test/composer.json

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"name": "api-platform/test",
3+
"description": "Test suite for API Platform",
4+
"type": "library",
5+
"keywords": [
6+
"REST",
7+
"API",
8+
"GraphQL",
9+
"JSON-LD",
10+
"Test"
11+
],
12+
"homepage": "https://api-platform.com",
13+
"license": "MIT",
14+
"authors": [
15+
{
16+
"name": "Kévin Dunglas",
17+
"email": "kevin@dunglas.fr",
18+
"homepage": "https://dunglas.fr"
19+
},
20+
{
21+
"name": "Antoine Bluchet",
22+
"email": "soyuka@gmail.com",
23+
"homepage": "https://soyuka.me"
24+
}
25+
],
26+
"require": {
27+
"php": ">=8.2",
28+
"phpunit/phpunit": "^12.2",
29+
"symfony/browser-kit": "^6.4 || ^7.0 || ^8.0",
30+
"symfony/http-client": "^6.4 || ^7.0 || ^8.0",
31+
"symfony/framework-bundle": "^6.4 || ^7.0 || ^8.0"
32+
},
33+
"autoload": {
34+
"psr-4": {
35+
"ApiPlatform\\Test\\": ""
36+
}
37+
}
38+
}

0 commit comments

Comments
 (0)