Software Alternatives & Reviews
Table of contents
  1. Videos
  2. Social Mentions
  3. Comments

PHPUnit

Application and Data, Build, Test, Deploy, and Testing Frameworks

As PHPUnit is an open source project, you can find more open source alternatives and stats on LibHunt.
Pricing:
  • Open Source

PHPUnit Reviews and details

Screenshots and images

  • PHPUnit Landing page
    Landing page //
    2023-08-26

Videos

PHP Unit Testing with PHPUnit | Automated PHP Testing Tutorial [2021]

DrupalCon Dublin 2016: Automated Testing: PHPUnit all the way

Our first PHPunit test in Drupal 8

Social recommendations and mentions

We have tracked the following product recommendations or mentions on various public social media platforms and blogs. They can help you see what people think about PHPUnit and what they use it for.
  • 8 Essential Tools Every PHP Developer Needs
    PHPUnit is the de facto standard for PHP unit testing. It provides a framework for writing and running tests, helping developers quickly discover and fix errors. PHPUnit encourages developers to write testable code and adopt a test-driven development approach, resulting in higher-quality code and reduced chances of errors in production. - Source: dev.to / about 22 hours ago
  • How to migrate from Api Platform v2 to v3?
    Before updating Api Platform, you should make sure that your Api Platform routes are fully covered by tests. You can define integration tests with PHPUnit, Behat or Pest, depending on the tool you’re most comfortable with. - Source: dev.to / 3 months ago
  • PHP libraries and tools
    PHPUnit: PHPUnit is a programmer-oriented testing framework for PHP. It is an instance of the xUnit architecture for unit testing frameworks. Extensions/tools: Brianium/paratest: Parallel testing for PHPUnit Johnkary/phpunit-speedtrap: Reports on slow-running tests in your PHPUnit test suite. Robiningelbrecht/phpunit-pretty-print: Better PHPUnit CLI output with Collision Roave/no-leaks: PHPUnit Plugin for... - Source: dev.to / 5 months ago
  • I created a PHPUnit 10 extension to prettify CLI output
    I really like how Pest PHP formats and outputs test results, but I still prefer to use PHPUnit. Luckily there's Collision. This package is designed to give you beautiful error reporting when interacting with your app through the command line. Source: 10 months ago
  • Setup local development environment and run tests of PHP Twig
    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. - Source: dev.to / 12 months ago
  • Using github actions to execute your PHP tests after every push
    I've been developing my own symfony bundle and I would like to share with you how I'm driving continuos integration to execute my unit tests. For testing purposes I'm using phpunit and for continous integration I've choosen github actions. - Source: dev.to / about 1 year ago
  • 7 Powerful Tools to Simplify Laravel Developers' Life
    PHPUnit is a unit testing framework for PHP included with Laravel and can be used to test your application's code. It provides a set of assertions and functions for testing your code and can be used to run automated tests. - Source: dev.to / about 1 year ago
  • PHPUnit, do i need to learn it?
    While PHPUnit is definitly the most used testing library there are also others around, but if you know example any other testing library even from other language you get really fast into PHPUnit. Source: about 1 year ago
  • Building Better Apps with Automated Tests
    To get started with testing, search for a popular testing framework for your programming language. PHP has PHPUnit, for example. Java has JUnit. Flutter apps use Flutter Driver. No matter your language or framework, there is a testing framework that will work for your app. - Source: dev.to / about 1 year ago
  • How useful are code coverage reports?
    Back in 2010, I was working for Plusnet, an ISP in the UK (Referral link). The engineering team were still getting to grips with unit testing our code. What we saw time and time again was many tests being written, high coverage reports, and management was happy. However, if you checked out a test, we saw that tests were running, and executing code, but they were not asserting anything. This meant the tests were... - Source: dev.to / over 1 year ago
  • 7 WordPress Best Practices For Real Engineers
    There is nothing preventing you from following best practices like SOLID, YANGI and DRY in your own code. You can still write PHPUnit tests. - Source: dev.to / over 1 year ago
  • Testing PHP Applications
    There are many tools you can use to prove the correct working of this method. The most popular one (by far!) is phpUnit. - Source: dev.to / over 1 year ago
  • A GitHub Workflow to Check the Compatibility of Your PHP Package with a Range of Dependency Versions
    Let's also instal PHPUnit as a development dependency:. - Source: dev.to / over 1 year ago
  • OOP Design: "External Platform <-> Adapter <-> Internal Models". Hi again, I'm looking for feedback on my latest OOP design. This time with code examples from a working setup. Thank you very much :)
    I use a composer package called PHPUnit https://phpunit.de/ (itself a framework - for writing tests). Source: over 1 year ago
  • How to create a function to check if code returns expected output?
    What they are asking you is to cover your code with unit tests. A good framework for PHP is PHPUnit (https://phpunit.de/). It's a more complicated topic than what I can cover in a reddit comment, but essentially, you will write your operating code in one class, then a test in a separate class and make assertions as to what you're expecting to happen. Your test class will execute your operating code and then... Source: almost 2 years ago
  • Strangler Pattern in practice
    So what to test? We decided to test what the client recognized as key functionalities. For the client, most of the functionality is crucial, we had to use our intuition. Of course, no one is able to write tests for an unknown existing system that will cover everything, having no budget for it. We used PHPUnit. We have also added smoke tests (does it return "200"?) to most of the subpages that we managed to find by... - Source: dev.to / almost 2 years ago
  • How to make UnitTest in php?
    PHPUnit is the go-to testing framework for PHP, IIRC. It's what you'll want to take a look at. Source: almost 2 years ago
  • Pest: a PHP testing framework that goes above and beyond PHPUnit
    When building third-party APIs, it’s important to test your code in every runtime scenario you’ve seen or can foresee. For this, a robust and easy to use & maintain testing framework is a must. As PHP developers, we relied heavily on PHPUnit, but we switched over to the Pest Testing Framework, which simplified and reduced our large library of testing code. - Source: dev.to / about 2 years ago
  • How to Build and Distribute Beautiful Command-Line Applications with PHP and Composer
    We will use PHPUnit as our testing environment – let's instal it as a development dependency:. - Source: dev.to / about 2 years ago
  • I did not understand why some algorithms are much faster
    This won't verify that your benchmark is technically accurate, though. For that you should make use of something like PHPUnit to ensure it's giving accurate results. Source: about 2 years ago
  • Modern tools for PHP developers
    Automated testing tools have become a standard throughout the software development industry. Every language has its own tools, and the biggest player for PHP is definitely phpUnit. - Source: dev.to / about 2 years ago

Do you know an article comparing PHPUnit to other products?
Suggest a link to a post with product alternatives.

Suggest an article

Generic PHPUnit discussion

Log in or Post with

This is an informative page about PHPUnit. You can review and discuss the product here. The primary details have not been verified within the last quarter, and they might be outdated. If you think we are missing something, please use the means on this page to comment or suggest changes. All reviews and comments are highly encouranged and appreciated as they help everyone in the community to make an informed choice. Please always be kind and objective when evaluating a product and sharing your opinion.