You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
***Project Context:** API Platform is a PHP framework supporting both Symfony and Laravel. The user will specify which framework (defaults to Symfony).
12
12
***Fixture Handling:** Avoid altering existing fixtures to prevent unintended side effects on other tests. Create new entities/DTOs/models with unique names. Business logic is secondary; focus on framework testing.
13
13
***No Test Execution by Default:** Do not run tests unless explicitly asked (to save context, as tests produce verbose output).
14
+
***No Git commit by default:** Do not commit unless explicitly asked
15
+
16
+
## Components
17
+
18
+
This code is organized through components, when you need to run a component's specific test you need to link it using:
19
+
20
+
```bash
21
+
cd src/Laravel && composer link ../../
22
+
```
23
+
24
+
Before running php-cs-fixer or phpstan it may be a good idea to remove the components deps:
25
+
26
+
```bash
27
+
find src -name vendor -exec rm -r {} \;
28
+
```
29
+
30
+
Laravel's phpstan must run from `src/Laravel` directory.
14
31
15
32
## Running Tests (When Asked)
16
33
@@ -49,14 +66,30 @@ vendor/bin/phpunit
49
66
```
50
67
51
68
**PHPUnit (Component-Specific):**
69
+
70
+
First go to the component's directory then run dependency linking:
0 commit comments