7 best PHP Testing Generic libraries in 2023

share link

by marketing.admin@openweaver.com dot icon Updated: Feb 23, 2023

technology logo
technology logo

Guide Kit Guide Kit  

PHP is a popular open-source programming language that is widely used for developing web applications. It helps developers to create dynamic content for websites and mobile apps. PHP Testing is one of the most important parts of PHP development. It allows you to test your code, check the performance of your product, and find bugs. The best PHP testing tools allow developers to run tests in a simple way, from unit tests to functional testing. To make your life easier, we’ve prepared a list of 7 best PHP Testing Open Source libraries in 2022 in our kit, laravel-generator - CRUD Laravel Generator; php-quickcheck - generative testing for PHP; phpunit-skeleton-generator - generate skeleton test classes from production code classes.

phpunitby sebastianbergmann

PHP doticonstar image 19127 doticonVersion:Currentdoticon
License: Permissive (BSD-3-Clause)

The PHP Unit Testing framework.

Support
    Quality
      Security
        License
          Reuse

            phpunitby sebastianbergmann

            PHP doticon star image 19127 doticonVersion:Currentdoticon License: Permissive (BSD-3-Clause)

            The PHP Unit Testing framework.
            Support
              Quality
                Security
                  License
                    Reuse

                      phpstanby phpstan

                      PHP doticonstar image 11928 doticonVersion:1.10.19doticon
                      License: Permissive (MIT)

                      PHP Static Analysis Tool - discover bugs in your code without running it!

                      Support
                        Quality
                          Security
                            License
                              Reuse

                                phpstanby phpstan

                                PHP doticon star image 11928 doticonVersion:1.10.19doticon License: Permissive (MIT)

                                PHP Static Analysis Tool - discover bugs in your code without running it!
                                Support
                                  Quality
                                    Security
                                      License
                                        Reuse

                                          mockeryby mockery

                                          PHP doticonstar image 10406 doticonVersion:1.5.1doticon
                                          License: Others (Non-SPDX)

                                          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).

                                          Support
                                            Quality
                                              Security
                                                License
                                                  Reuse

                                                    mockeryby mockery

                                                    PHP doticon star image 10406 doticonVersion:1.5.1doticon License: Others (Non-SPDX)

                                                    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).
                                                    Support
                                                      Quality
                                                        Security
                                                          License
                                                            Reuse

                                                              pestby pestphp

                                                              PHP doticonstar image 7116 doticonVersion:v2.7.0doticon
                                                              License: Permissive (MIT)

                                                              Pest is an elegant PHP testing Framework with a focus on simplicity, meticulously designed to bring back the joy of testing in PHP.

                                                              Support
                                                                Quality
                                                                  Security
                                                                    License
                                                                      Reuse

                                                                        pestby pestphp

                                                                        PHP doticon star image 7116 doticonVersion:v2.7.0doticon License: Permissive (MIT)

                                                                        Pest is an elegant PHP testing Framework with a focus on simplicity, meticulously designed to bring back the joy of testing in PHP.
                                                                        Support
                                                                          Quality
                                                                            Security
                                                                              License
                                                                                Reuse

                                                                                  Behatby Behat

                                                                                  PHP doticonstar image 3587 doticonVersion:v3.8.1doticon
                                                                                  License: Permissive (MIT)

                                                                                  BDD in PHP

                                                                                  Support
                                                                                    Quality
                                                                                      Security
                                                                                        License
                                                                                          Reuse

                                                                                            Behatby Behat

                                                                                            PHP doticon star image 3587 doticonVersion:v3.8.1doticon License: Permissive (MIT)

                                                                                            BDD in PHP
                                                                                            Support
                                                                                              Quality
                                                                                                Security
                                                                                                  License
                                                                                                    Reuse

                                                                                                      phoronix-test-suiteby phoronix-test-suite

                                                                                                      PHP doticonstar image 2024 doticonVersion:v10.8.4doticon
                                                                                                      License: Strong Copyleft (GPL-3.0)

                                                                                                      The Phoronix Test Suite open-source, cross-platform automated testing/benchmarking software.

                                                                                                      Support
                                                                                                        Quality
                                                                                                          Security
                                                                                                            License
                                                                                                              Reuse

                                                                                                                phoronix-test-suiteby phoronix-test-suite

                                                                                                                PHP doticon star image 2024 doticonVersion:v10.8.4doticon License: Strong Copyleft (GPL-3.0)

                                                                                                                The Phoronix Test Suite open-source, cross-platform automated testing/benchmarking software.
                                                                                                                Support
                                                                                                                  Quality
                                                                                                                    Security
                                                                                                                      License
                                                                                                                        Reuse
                                                                                                                          PHP doticonstar image 973 doticonVersion:v8.0.0-BETA1doticon
                                                                                                                          License: Permissive (MIT)

                                                                                                                          Symfony bundle to isolate your app's doctrine database tests and improve the test performance

                                                                                                                          Support
                                                                                                                            Quality
                                                                                                                              Security
                                                                                                                                License
                                                                                                                                  Reuse

                                                                                                                                    doctrine-test-bundleby dmaicher

                                                                                                                                    PHP doticon star image 973 doticonVersion:v8.0.0-BETA1doticon License: Permissive (MIT)

                                                                                                                                    Symfony bundle to isolate your app's doctrine database tests and improve the test performance
                                                                                                                                    Support
                                                                                                                                      Quality
                                                                                                                                        Security
                                                                                                                                          License
                                                                                                                                            Reuse
                                                                                                                                              PHP doticonstar image 570 doticonVersion:v3.0.4doticon
                                                                                                                                              License: Permissive (MIT)

                                                                                                                                              An easier way to use PHPUnit with CodeIgniter 3.x.

                                                                                                                                              Support
                                                                                                                                                Quality
                                                                                                                                                  Security
                                                                                                                                                    License
                                                                                                                                                      Reuse

                                                                                                                                                        ci-phpunit-testby kenjis

                                                                                                                                                        PHP doticon star image 570 doticonVersion:v3.0.4doticon License: Permissive (MIT)

                                                                                                                                                        An easier way to use PHPUnit with CodeIgniter 3.x.
                                                                                                                                                        Support
                                                                                                                                                          Quality
                                                                                                                                                            Security
                                                                                                                                                              License
                                                                                                                                                                Reuse

                                                                                                                                                                  test-timeby spatie

                                                                                                                                                                  PHP doticonstar image 200 doticonVersion:1.3.2doticon
                                                                                                                                                                  License: Permissive (MIT)

                                                                                                                                                                  A helper to control the flow of time

                                                                                                                                                                  Support
                                                                                                                                                                    Quality
                                                                                                                                                                      Security
                                                                                                                                                                        License
                                                                                                                                                                          Reuse

                                                                                                                                                                            test-timeby spatie

                                                                                                                                                                            PHP doticon star image 200 doticonVersion:1.3.2doticon License: Permissive (MIT)

                                                                                                                                                                            A helper to control the flow of time
                                                                                                                                                                            Support
                                                                                                                                                                              Quality
                                                                                                                                                                                Security
                                                                                                                                                                                  License
                                                                                                                                                                                    Reuse
                                                                                                                                                                                      PHP doticonstar image 173 doticonVersion:Currentdoticon
                                                                                                                                                                                      License: Permissive (BSD-3-Clause)

                                                                                                                                                                                      generative testing for PHP

                                                                                                                                                                                      Support
                                                                                                                                                                                        Quality
                                                                                                                                                                                          Security
                                                                                                                                                                                            License
                                                                                                                                                                                              Reuse

                                                                                                                                                                                                php-quickcheckby steos

                                                                                                                                                                                                PHP doticon star image 173 doticonVersion:Currentdoticon License: Permissive (BSD-3-Clause)

                                                                                                                                                                                                generative testing for PHP
                                                                                                                                                                                                Support
                                                                                                                                                                                                  Quality
                                                                                                                                                                                                    Security
                                                                                                                                                                                                      License
                                                                                                                                                                                                        Reuse

                                                                                                                                                                                                          phpunit-skeleton-generatorby sebastianbergmann

                                                                                                                                                                                                          PHP doticonstar image 160 doticonVersion:Currentdoticon
                                                                                                                                                                                                          License: Others (Non-SPDX)

                                                                                                                                                                                                          Tool that can generate skeleton test classes from production code classes and vice versa.

                                                                                                                                                                                                          Support
                                                                                                                                                                                                            Quality
                                                                                                                                                                                                              Security
                                                                                                                                                                                                                License
                                                                                                                                                                                                                  Reuse

                                                                                                                                                                                                                    phpunit-skeleton-generatorby sebastianbergmann

                                                                                                                                                                                                                    PHP doticon star image 160 doticonVersion:Currentdoticon License: Others (Non-SPDX)

                                                                                                                                                                                                                    Tool that can generate skeleton test classes from production code classes and vice versa.
                                                                                                                                                                                                                    Support
                                                                                                                                                                                                                      Quality
                                                                                                                                                                                                                        Security
                                                                                                                                                                                                                          License
                                                                                                                                                                                                                            Reuse
                                                                                                                                                                                                                              PHP doticonstar image 0 doticonVersion:1.1.1doticon
                                                                                                                                                                                                                              License: Permissive (MIT License)

                                                                                                                                                                                                                              Generate pseudo locale string for unicode testing and marking missing strings

                                                                                                                                                                                                                              Support
                                                                                                                                                                                                                                Quality
                                                                                                                                                                                                                                  Security
                                                                                                                                                                                                                                    License
                                                                                                                                                                                                                                      Reuse

                                                                                                                                                                                                                                        php-pseudolocaleby sandfox

                                                                                                                                                                                                                                        PHP doticon star image 0 doticonVersion:1.1.1doticon License: Permissive (MIT License)

                                                                                                                                                                                                                                        Generate pseudo locale string for unicode testing and marking missing strings
                                                                                                                                                                                                                                        Support
                                                                                                                                                                                                                                          Quality
                                                                                                                                                                                                                                            Security
                                                                                                                                                                                                                                              License
                                                                                                                                                                                                                                                Reuse

                                                                                                                                                                                                                                                  php-templateby stscoundrel

                                                                                                                                                                                                                                                  PHP doticonstar image 0 doticonVersion:Currentdoticon
                                                                                                                                                                                                                                                  License: Permissive (MIT)

                                                                                                                                                                                                                                                  Template repo for generic PHP library with tests, lint and static analysis

                                                                                                                                                                                                                                                  Support
                                                                                                                                                                                                                                                    Quality
                                                                                                                                                                                                                                                      Security
                                                                                                                                                                                                                                                        License
                                                                                                                                                                                                                                                          Reuse

                                                                                                                                                                                                                                                            php-templateby stscoundrel

                                                                                                                                                                                                                                                            PHP doticon star image 0 doticonVersion:Currentdoticon License: Permissive (MIT)

                                                                                                                                                                                                                                                            Template repo for generic PHP library with tests, lint and static analysis
                                                                                                                                                                                                                                                            Support
                                                                                                                                                                                                                                                              Quality
                                                                                                                                                                                                                                                                Security
                                                                                                                                                                                                                                                                  License
                                                                                                                                                                                                                                                                    Reuse

                                                                                                                                                                                                                                                                      See similar Kits and Libraries