Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today. Learn more →
Top 23 PHP Testing Projects
-
Project mention: Setup local development environment and run tests of PHP Twig | dev.to | 2023-03-19
Finally we install the command line version of php (no web server is needed for this project), composer which is a package management system for PHP and PHP Unit, the testing framework of PHP.
-
Psalm is great as someone pointed out, and there is also https://phpstan.org/
-
InfluxDB
Access the most powerful time series database as a service. Ingest, store, & analyze all types of time series data in a fully-managed, purpose-built database. Keep data forever with low-cost storage and superior data compression.
-
Mockery
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).
-
-
Pest
Pest is an elegant PHP testing Framework with a focus on simplicity, meticulously designed to bring back the joy of testing in PHP.
Pest 2.0 has just been released, and it's here to make your PHP testing experience more enjoyable and efficient. We will dive into the world of Pest and explore what makes it stand out from PHPUnit. Plus, we'll check out the latest features in Pest 2.0! 🚀
-
Project mention: Can anyone help me setup Selenium for PHP? Step-by-step of what I'm doing below | reddit.com/r/AskProgramming | 2022-08-15
Creating a file named "example.php" and copying and pasting the code from this page in C:\xampp\htdocs\sel: https://github.com/php-webdriver/php-webdriver/blob/main/example.php
-
Codeception: https://codeception.com/
-
SonarLint
Clean code begins in your IDE with SonarLint. Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today.
-
-
-
-
I haven’t tried it with the MySQL-connection, I use the in-memory version, but paratest (https://github.com/paratestphp/paratest) has never failed me. Not an answer to your question, but an answer to your problem I guess.
-
phoronix-test-suite
The Phoronix Test Suite open-source, cross-platform automated testing/benchmarking software.
I grabbed the https://www.phoronix-test-suite.com/ on a whim.
-
-
Project mention: Collecting line, branch, and path coverage with PHPUnit | reddit.com/r/PHP | 2023-03-23
IMO code coverage is a very flawed metric on its own. A high percentage doesn't guarantee that the tests actually test the right things, and it would be much more efficient if mutation testing was used (e.g. Infection). It still uses the generated code coverage reports, but only as a base for its own metrics.
-
I like phpspec.
-
Project mention: FYI for anyone wanting to use Laravel 9/Inertia/Vue3/Sail/Dusk | reddit.com/r/laravel | 2022-08-22
Not sure if this is the issue you opened, but this helped me: https://github.com/laravel/dusk/issues/992
-
-
VFS Stream
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.
-
-
-
PHP Architecture Tester
PHP Architecture Tester - Easy to use architectural testing tool for PHP :heavy_check_mark:
Project mention: PHPStan 1.9.0 With PHPDoc Asserts, List Type, and More! | reddit.com/r/PHP | 2022-11-04After that, consider using a PHPStan rules framework like PHP Architecture Tester to enforce architectural decisions made by your team.
-
-
Project mention: Phabricator replacement? | Or OpenProject alternative? | issue tracking/code | reddit.com/r/selfhosted | 2022-08-02
PHP Censor - Tests code for you
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
PHP Testing related posts
- Collecting line, branch, and path coverage with PHPUnit
- Pest 2.0 is now generally available 🐛
- international events for people not born here
- Using github actions to execute your PHP tests after every push
- what are you using to make phpunit output pretty?
- Password_verify() always return(ed) true with some hash.
- How to install Symfony with Flowbite and Tailwind CSS
-
A note from our sponsor - SonarLint
www.sonarlint.org | 24 Mar 2023
Index
What are some of the best open-source Testing projects in PHP? This list will help you:
Project | Stars | |
---|---|---|
1 | PHPUnit | 18,989 |
2 | PHPStan | 11,755 |
3 | Mockery | 10,377 |
4 | Prophecy | 8,537 |
5 | Pest | 6,564 |
6 | php-webdriver | 4,787 |
7 | Codeception | 4,658 |
8 | Behat | 3,817 |
9 | php-ddd-example | 2,581 |
10 | Alice | 2,429 |
11 | ParaTest | 2,088 |
12 | phoronix-test-suite | 1,945 |
13 | testbench | 1,922 |
14 | Infection | 1,846 |
15 | PHPSpec | 1,836 |
16 | dusk | 1,732 |
17 | Atoum | 1,436 |
18 | VFS Stream | 1,359 |
19 | Kahlan | 1,140 |
20 | phpunit-watcher | 829 |
21 | PHP Architecture Tester | 791 |
22 | AspectMock | 781 |
23 | PHP Censor | 662 |