Skip to content

Commit

Permalink
tests: validate PSR-4 in CI (zenstruck#762)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikophil authored Dec 17, 2024
1 parent cafc693 commit 1db5ced
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,9 @@ jobs:
with:
composer-options: --prefer-dist

- name: Validate PSR-4
run: composer dump-autoload --optimize --strict-psr --strict-ambiguous

- name: Install PHPStan
run: composer bin phpstan install

Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@
"Zenstruck\\Foundry\\Tests\\": ["tests/"],
"App\\": "tests/Fixture/Maker/tmp/src",
"App\\Tests\\": "tests/Fixture/Maker/tmp/tests"
}
},
"exclude-from-classmap": ["tests/Fixture/Maker/expected"]
},
"config": {
"preferred-install": "dist",
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Persistence/ProxyGeneratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* file that was distributed with this source code.
*/

namespace Unit\Persistence;
namespace Zenstruck\Foundry\Tests\Unit\Persistence;

use PHPUnit\Framework\TestCase;
use Zenstruck\Foundry\Persistence\ProxyGenerator;
Expand Down

0 comments on commit 1db5ced

Please sign in to comment.