© 2023 Hashnode
#phpunit
Prerequisites You need to know a thing or two about testing in Laravel. TLDR If you're in a hurry, skip to the end. About This guide will teach you how to upload real files in Laravel tests, instead of using fakes. You will find it useful w…
Laravel Testing Cookbook will cover common use cases and will be ready in a few months time. Sign up for the waitlist to be notified when it's ready! The book will cover both PestPHP and PHPUnit. Use…
One of the first roles that I've been working on since I went full-time remote was that of the unit tester. I wasn't used to being the QA guy before and although this was new to me, I've gotten the ha…
Previously I created an article about what is unit testing, now let's create one Helper class of a Magento 2 Module Fiko\Testing\Helper\Data and then we're going to create unit testing of that class. …
There's a lot of cool new WordPress projects around, but sometimes it's difficult to get them all working together. A while ago, I found the WP CLI, and then I found the WP Scaffold Plugin command. It…
There are four major and most frequently used data type in PHP. They are String, Integer, Float and a Boolean. As already mentioned earlier, we do not need to assign a data type to the variable, rathe…
Hey there. If you're already using Laravel, I just want to share a very quick tip you can use to structure your test classes. If you're a little clumsy with your nomenclature, when writing tests, you will often run into a stern warning from…
The Premise I've been writing PHP for many years at this point and I've always ignored testing preferring to just get the code to execute and fix any issues. The problem with that is I am not a user a…
In this tutorial we are going to setup a GitLab CI/CD job that can run your PHPUnit test suite and extract a testing report plus the overall coverage. First, we need to setup our server and install th…
Preface In this article you will learn about the shortcuts and things to notice while writing PHP Code Also PHP Should Be Already Installed on your PC, Device, Server, Sandbox or Virtual Machine ( Wha…