Posts marked with “testing”

Getting Started With the Pest Testing Framework

by · October 19, 2023

0
 

As a practitioner of test-driven development, I’m always looking for different ways to write test code faster. Sometimes, this comes as little things like learning a faster way to run my tests using a built-in editor setting, but sometimes it’s a whole new way to write my tests. In this article, we’re going to discuss […]

 

World Backup Day

by · April 1, 2022

0
 

Scott Keck-Warren has a contribution in honor of this month’s World Backup Date, Backups For Beginners. Follow along for some inspiration in making sure you have a complete backup system. Ken Marks continues his series, How to Hack Your Home with a Raspberry Pi, with an article showing how to actually hook up your accelerometer […]

 

Testing The Core

by · March 31, 2022

0
 

If you listen to my PHPUgly podcast, you might know that we have a policy of not mixing politics with our tech talk. That is a policy we have been breaking more and more often over the past couple of years.

 

The Workshop: Acceptance Testing with Codeception

by ·

0
 

Acceptance testing is my favorite tool to reach for when working with legacy applications that may have low test quality or no tests at all. Because acceptance testing approaches the application from outside of the source code, we’re able to greatly increase test coverage without having to touch the application’s code itself. Larger teams can […]

 

DDD Alley: Better Late Than Never

by · March 1, 2022

0
 

Last month, we created “role-based lookups” with “When You Know the Pattern.” Database-related code can be difficult to unit test, and once unit tests are written, they can be difficult and time-consuming to maintain. This month we’ll carefully look at this problem and possible solutions. We’ll walk through the test suite after extensive refactoring to […]

 

Community Corner: PHPUnit Creator Sebastian Bergmann, Part Two

by · October 20, 2021

0
 

Welcome to part two of our interview with Sebastian Bergmann. Last month we heard about Sebastian’s beginnings, how he got started with development and what led him to write the de facto testing suite for the PHP programming language. This month, Sebastian dives into what it’s like managing such a widely used and crucial piece […]

 

It’s Really an Upgrade

by · September 12, 2021

0
 

We often consider improvements from what they’ll cost us, in time, effort, or money, in the short term and undervaluing the long-term benefits we’ll get. We cover practices that look daunting but are worthwhile in this issue, including PHP refactoring tools like Rector, Commands and Queries, PHP Unit, Strategic Domain-Driven Design, Livewire, and more.

 

The Workshop: Testing with Pest Framework

by · August 14, 2021

0
 

Pest is a PHP testing framework focused on simplicity and brings a powerful expectations API to PHP. Pest is influenced by Jest, a JavaScript testing framework. Pest was created by Nuno Maduro originally via Sponsorware license and ultimately was published under the MIT open source license. You can think of Pest ha an alternative to other testing frameworks, such as […]

 

Streamlining Behat

by · May 12, 2021

0
 

Behat, and feature tests overall, are crucial for giving you confidence that when you refactor code, you don’t change how an application works and for helping you understand how an application behaves in practice. Investing in integration and functional tests is worth it in the long term, and in this article, we’ll see how I […]

 

Let’s Discover Atoum

by ·

0
 

In the PHP world, if you ask most developers about testing frameworks, the first response you’ll get is PHPUnit. But there are several alternatives, and one of them is atoum. This article introduces you to atoum, the simple, modern, and intuitive unit testing framework! You will discover how to write fluent tests and execute them […]