|
1 | 1 | # Progressive JSON Streamer for PHP |
2 | 2 |
|
3 | | -[](https://github.com/sponsors/egyjs) |
| 3 | +[](https://www.php.net/) |
| 4 | +[](https://github.com/egyjs/PHP-Progressive-json-stream/actions) |
| 5 | +[](https://codecov.io/gh/egyjs/PHP-Progressive-json-stream) |
| 6 | +[](https://packagist.org/packages/egyjs/progressive-json-php) |
| 7 | +[](https://packagist.org/packages/egyjs/progressive-json-php) |
| 8 | +[](https://github.com/egyjs/PHP-Progressive-json-stream/blob/master/LICENSE) |
| 9 | +[](https://github.com/sponsors/egyjs) |
4 | 10 |
|
5 | 11 |  |
6 | 12 |
|
@@ -619,7 +625,50 @@ $streamer->addPlaceholder('debug_info', function() { |
619 | 625 |
|
620 | 626 | --- |
621 | 627 |
|
622 | | -## 🤝 Contributing |
| 628 | +## � Testing |
| 629 | + |
| 630 | +This library comes with comprehensive PHPUnit tests to ensure reliability and maintainability. |
| 631 | + |
| 632 | +### Running Tests |
| 633 | + |
| 634 | +```bash |
| 635 | +# Run all tests |
| 636 | +composer test |
| 637 | + |
| 638 | +# Run tests with coverage report |
| 639 | +composer test:coverage |
| 640 | + |
| 641 | +# Run tests with readable output |
| 642 | +composer test:watch |
| 643 | + |
| 644 | +# Direct PHPUnit commands |
| 645 | +vendor/bin/phpunit |
| 646 | +vendor/bin/phpunit --testdox |
| 647 | +vendor/bin/phpunit --coverage-text |
| 648 | +``` |
| 649 | + |
| 650 | +### Test Coverage |
| 651 | + |
| 652 | +The test suite includes: |
| 653 | +- ✅ Basic functionality tests |
| 654 | +- ✅ Error handling and edge cases |
| 655 | +- ✅ Nested structure handling |
| 656 | +- ✅ Stream generation and output |
| 657 | +- ✅ Symfony integration tests |
| 658 | +- ✅ Configuration and validation tests |
| 659 | + |
| 660 | +Coverage reports are generated in `build/coverage-html/` when running with coverage. |
| 661 | + |
| 662 | +### Continuous Integration |
| 663 | + |
| 664 | +GitHub Actions automatically runs tests on: |
| 665 | +- PHP 8.0, 8.1, 8.2, 8.3 |
| 666 | +- Push and Pull Request events |
| 667 | +- Multiple operating systems |
| 668 | + |
| 669 | +--- |
| 670 | + |
| 671 | +## �🤝 Contributing |
623 | 672 |
|
624 | 673 | 1. Fork the repository |
625 | 674 | 2. Create a feature branch (`git checkout -b feature/amazing-feature`) |
|
0 commit comments