|
1 | | -- Always use guidelines from the `docs/guidelines` folder |
| 1 | +## Important |
| 2 | + |
| 3 | +- Always use guidelines from the `docs/guidelines` folder when generating any code or documentation. |
| 4 | + |
| 5 | +## Project Overview |
| 6 | + |
| 7 | +**Testo** is an extensible PHP testing framework designed for projects requiring substantial customization of testing workflows. |
| 8 | + |
| 9 | +### Philosophy |
| 10 | +- Name derived from East and South Slavic languages "testo" (dough) - symbolizing malleability and customization |
| 11 | +- Core principle: developers deserve complete authority over their testing environments |
| 12 | +- Built on minimal core with middleware system for unprecedented extensibility |
| 13 | + |
| 14 | +### Target Audience |
| 15 | +Projects requiring significant testing workflow customization: |
| 16 | +- SDK development |
| 17 | +- Framework tools and libraries |
| 18 | +- Complex integrations |
| 19 | +- Scenarios where PHPUnit/standard frameworks lack flexibility |
| 20 | + |
| 21 | +### Key Differentiators |
| 22 | +1. **Familiar PHP syntax** - No new DSL to learn, standard PHP code |
| 23 | +2. **Extensibility first** - Middleware architecture enables deep customization |
| 24 | +3. **Minimal core** - Lightweight foundation that remains powerful through extensions |
| 25 | + |
| 26 | +### Core Features |
| 27 | +- Attribute-based test configuration (#[Test], #[RetryPolicy], #[ExpectException]) |
| 28 | +- No base class requirement for test classes |
| 29 | +- Built-in dependency injection support |
| 30 | +- Memory leak detection capabilities |
| 31 | +- Retry policies for flaky tests |
| 32 | +- Flexible assertion library |
| 33 | +- Symfony Console-based CLI |
| 34 | + |
| 35 | +### Technical Stack |
| 36 | +- PHP 8.1+ (leverages modern language features) |
| 37 | +- Symfony components (Console, Finder, Process) |
| 38 | +- ReactPHP for async operations |
| 39 | +- PSR standards compliance (Container, SimpleCache) |
2 | 40 |
|
3 | 41 | ## Guidelines Index |
4 | 42 |
|
|
47 | 85 | - Isolation: mock dependencies, use test doubles, reset state between tests |
48 | 86 | - **Critical restrictions**: DO NOT mock enums or final classes - use real instances |
49 | 87 | - Error testing: expectException before Act phase |
50 | | -- Test traits for shared functionality |
| 88 | +- Test traits for shared functionality |
0 commit comments