Top 23 PHP Testing Projects
The PHP Unit Testing framework.
PHPUnit, the most popular and most used testing framework in PHP, has its own built in support for test doubles.
Mockery is a simple yet flexible PHP mock object framework for use in unit testing with PHPUnit, PHPSpec or any other testing framework. Its core goal is to offer a test double framework with a succinct API capable of clearly defining all possible object operations and interactions using a human readable Domain Specific Language (DSL).
Mockery is another framework for creating test doubles. It can be used with PHPUnit, phpspec, Behat, or any other testing framework. I find it especially powerful when working with legacy code, due to its support for creating partial mocks or mocking hard dependencies.
Scout APM - Leading-edge performance monitoring starting at $39/month. Scout APM uses tracing logic that ties bottlenecks to source code so you know the exact line of code causing performance issues and can get back to building a great product faster.
PHP Static Analysis Tool - discover bugs in your code without running it!Project mention: Automating code quality check using GrumPHP in Magento 2 | dev.to | 2021-04-11
Highly opinionated mocking framework for PHP 5.3+
Prophecy is a framework for creating test doubles that was initially built for the requirements of phpspec, but it can be used with any other PHP testing framework. Since PHPUnit 4.5 it bundles Prophecy within PHPUnit itself, but as of PHPUnit 9.x this bundling is deprecated and set to be removed in PHPUnit 10.
PHP client for Selenium/WebDriver protocol. Previously facebook/php-webdriverProject mention: Shellnium: Simple Selnium WebDriver for Bash | dev.to | 2021-02-24
For example, if you want to use php, you can use facebook-webdriver like this.
Full-stack testing PHP framework
BDD in PHPProject mention: 10 Of The Best PHP Testing Frameworks For 2021 | dev.to | 2021-02-17
Step 3: If you don’t have a Composer, you can easily set up the framework by downloading the latest version of behat.phar.
Pest is an elegant PHP Testing Framework with a focus on simplicity (by pestphp)
Expressive fixtures generator (by nelmio)
SpecBDD Framework for PHP
:computer: Parallel testing for PHPUnitProject mention: Looking for a book to help with writing tests | reddit.com/r/PHP | 2021-02-11
Once you have lots of tests, use https://github.com/paratestphp/paratest with this I can run 3100 tests in about 3 seconds (on a 4core box using 16 threads).
🐘🎯 Hexagonal Architecture + DDD + CQRS in PHP using Symfony 5Project mention: DDD / Hexagonal Architecture | reddit.com/r/symfony | 2021-02-13
Have a look at https://symfonycasts.com/screencast/symfonycon2019/hexagonal-architecture-with-symfony (and all resources from Matthias Noback including books, tweets and blogposts). Also check: - https://github.com/CodelyTV/php-ddd-example - https://github.com/msgphp/msgphp - https://minompi.medium.com/symfony-and-hexagonal-architecture-b3c4704e94de- https://blog.elao.com/fr/dev/architecture-hexagonale-symfony/ (needs to be translated from french, but really good one). - https://verraes.net/ (and all resources/tweets/blogposts from Mathias Verraes who has really good knowledge on DDD topics)
AST based PHP Mutation Testing FrameworkProject mention: news.ycombinator.com | 2021-02-17
I’ve used the infection PHP library (https://github.com/infection/infection) in an API SDK that I maintain.
My experiences were very similar to the author’s when I first started using it. Even though my test coverage was near 100%, the mutations introduced revealed that in large part my tests were fallible due to assumptions I’d made when writing them.
I’ve incorporated mutation testing as the final step in my CI workflow as a test for my tests. It’s a fair bit of work the first time it’s run (especially with larger libraries), but in my opinion vital as a pairing with tests.
The modern, simple and intuitive PHP unit testing framework.Project mention: 10 Of The Best PHP Testing Frameworks For 2021 | dev.to | 2021-02-17
Before installation, make sure you have the latest version of PHP installed in your system. You can set up an Atoumframework by either one of the ways.
The Phoronix Test Suite open-source, cross-platform automated testing/benchmarking software.Project mention: Otra duda sobre la fuente de poder | reddit.com/r/Argaming | 2021-03-03
vfsStream is a stream wrapper for a virtual file system that may be helpful in unit tests to mock the real file system. It can be used with any unit test framework, like PHPUnit or SimpleTest.
:heavy_check_mark: PHP Test Framework for Freedom, Truth, and Justice
A Puppeteer bridge for PHP, supporting the entire API.Project mention: PHP Interact with remote website | reddit.com/r/PHPhelp | 2021-04-12
The most powerful and flexible mocking framework for PHPUnit / Codeception.
PHP Censor is an open source self-hosted continuous integration server for PHP projects.
PHP Architecture Tester - Easy to use architectural testing tool for PHP :heavy_check_mark:Project mention: Weekly "ask anything" thread | reddit.com/r/PHP | 2021-03-22
Might be something for https://github.com/carlosas/phpat.
PHP Mocking Framework
A MySQL engine written in pure PHPProject mention: SleekDB 2.0 - A NoSQL Database made using PHP | reddit.com/r/PHP | 2021-02-01
A bit like how Vimeo's fake MySQL PHP objects would speed up their tests 2x on native Linux, and 5x in docker with the source under test on macOS.
What are some of the best open-source Testing projects in PHP? This list will help you:
|21||PHP Architecture Tester||496|