Articles by Tag #phpunit

Browse our collection of articles on various topics related to IT technologies. Dive in and explore something new!

Run PHPUnit locally in your WordPress Plugin with DDEV

While working with WordPress over the years, I have used multiple solutions for local developments,...

Learn More 10 1Jun 27 '24

PHP: Should I mock or should I go?

Mocks in short Mocks aim to test the behavior of real objects. They simulate...

Learn More 6 2Dec 6 '24

Mocking API Requests in Unit Tests

In many applications, it's common to send requests to external services to acquire various types of...

Learn More 6 1Apr 4

Test Your DOM in Laravel with PHPUnit

PHPUnit comes out of the box with features like AssertSee and AssertSeeText in both cases we can...

Learn More 3 0Jul 21 '24

Understanding Mock Objects in PHPUnit Testing

When writing unit tests, a key challenge is ensuring that your tests focus on the code under test...

Learn More 3 0Sep 22 '24

Setting up for Drupal's Functional JavaScript tests

Resources PHPUnit Browser test tutorial, Drupal.org, 26 January 2024 Running PHPUnit...

Learn More 3 0Jun 8 '24

PHP: random failures in tests

Context: Tests have been working fine so far, and, suddenly, it seems to fail. Why? While it's...

Learn More 3 0Apr 1

Automated Tests | How to unit tests with PHPUnit 🔧

Introduction Automated Tests are one of the most important parts of software engineering....

Learn More 3 1Feb 24

How to run a phpunit unit test with a specific dataset

Today I was running my tests and had a failing...

Learn More 1 0Jul 31 '24

Mastering Unit Testing in PHP: Tools, Frameworks, and Best Practices

How to Perform Unit Testing in PHP: Tools and Best Practices Unit testing is a critical...

Learn More 1 1Dec 26 '24

6 Steps to Master PHPUnit Testing with Ease!

Topics: PHPUnit, PHP testing, Software testing, Development workflow, Continuous integration, Unit...

Learn More 1 2Jan 13

Focusing your tests on the domain. A PHPUnit example

Introduction Many times developers try to test the 100% (or almost the 100%) of their...

Learn More 0 0Oct 4 '24

[Boost]

Mocking API Requests in Unit Tests Jarosław Szutkowski ・...

Learn More 0 0Apr 16

Laravel + PestPHP: Architecture Testing for Clean and Sustainable Code

If you're looking for an elegant and efficient way to test your Laravel application, PestPHP is the...

Learn More 0 1Apr 17

Wrote a book (And it is not about coding, and yeap it is in Greek)

In my free time I started to write #books and #scenarios fueled by multiple ideas I have in my brain....

Learn More 0 0Sep 13 '24

PHP: Mocking Closures and performing assertions

Photo by rivage on Unsplash Testing is crucial to ensuring code quality and reliability in modern...

Learn More 0 0Aug 25 '24