Skip to content

Commit

Permalink
Reproduce API Platform problem
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Jan 18, 2022
1 parent 4884324 commit a1217f8
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/other-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,10 @@ jobs:
cd e2e/phpstan-issue-4953
composer install
../../phpstan
- |
cd e2e/api-platform-trait
composer install
../../phpstan analyse -l 9 test.php
include:
- php-version: 8.0
ini-values: memory_limit=256M
Expand Down
2 changes: 2 additions & 0 deletions e2e/api-platform-trait/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/vendor
/composer.lock
9 changes: 9 additions & 0 deletions e2e/api-platform-trait/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"require": {
"api-platform/core": "^2.6",
"phpstan/phpstan": "^1.4",
"symfony/framework-bundle": "^5.4",
"phpunit/phpunit": "^9.5",
"symfony/http-client": "^5.4"
}
}
15 changes: 15 additions & 0 deletions e2e/api-platform-trait/test.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

declare(strict_types=1);

use ApiPlatform\Core\Bridge\Symfony\Bundle\Test\ApiTestCase;
use ApiPlatform\Core\Bridge\Symfony\Bundle\Test\Client;

class Test extends ApiTestCase
{
protected function setUp(): void
{
parent::setUp();
static::createClient();
}
}

0 comments on commit a1217f8

Please sign in to comment.