Adrien TiburceforAdrien Tiburce's Blogadritib.hashnode.net·Aug 22, 2020Unit Testing with Php from PhpUnit to Coverage ReportIf you want to be confident each time you add a new functionality in your code, or when you need to change some old code of your application unit tests are a necessity. In this article, I will not try to convince the few (I hope) developers reticent ...Discuss·13 likes·105 readsPHPUnit
Victor AnuebunwaforVictor Anuebunwa's Blogavonnadozie.hashnode.net·Aug 31, 2021How I survive testing on NodeJs and Jest 🤒Coming from a PHP background and with PHPUnit testing, I started my journey into writing tests on NodeJs with some expectations. For most, I was disappointed but for some, I was blown away. I guess this is a feeling you have to get used to with JavaS...Ezeh Livinus and 2 others are discussing this3 people are discussing thisDiscuss·13 likes·456 readsBack EndJavaScript
Bedram TamangforJoBins Engineeringjobins.hashnode.net·Mar 31, 2023Test Doubles in PHP with Mockery and PHPUnitTest doubles is a technique in which you replace the actual object with pretend object or a real method by pretend method or pre-define the return data and function arguments for a method to ease the testing purpose. In the real world, our applicatio...Discuss·9 likes·37 readsTesting
Bruce WellsforThoughts on PHPphpfui.hashnode.net·Apr 14, 2023PHP Inheritance ExplainedIn my last article, I explained OO (object oriented) programming does not necessitate inheritance. A common mistake among developers is to assume you need inheritance to do OO programming. But inheritance is an important concept if used correctly. Th...DiscussPHP
Shawn CriggerforIt's A Digital World by Shawn Criggershawnc.hashnode.net·Apr 13, 2023How to write Unit Tests for SlimPHP 4I am motivated to write this article because more comprehensive documentation and examples are needed to write unit tests in SlimPHP 4, unlike its predecessor, SlimPHP 3, which provided ample resources on this subject. It is crucial to implement unit...DiscussPHPUnit
Bruce WellsforThoughts on PHPphpfui.hashnode.net·Apr 12, 2023PHP Object Oriented ProgrammingI often see other developers having trouble with "Object Oriented Programming". Often they claim it does not work, or it gets "too complex", or hard to understand. And I have been there, done that in my youth, but I still use OO (object oriented) pro...Discussphp8
Bedram TamangforJoBins Engineeringjobins.hashnode.net·Mar 31, 2023Test Doubles in PHP with Mockery and PHPUnitTest doubles is a technique in which you replace the actual object with pretend object or a real method by pretend method or pre-define the return data and function arguments for a method to ease the testing purpose. In the real world, our applicatio...Discuss·9 likes·37 readsTesting
Elikem Seake-KwawuforESK's Tech Gardenenlightenme.hashnode.net·Mar 18, 2023How to upload real files in Laravel TestsPrerequisites 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 when you wa...DiscussLaravel
David CarrforDC Blogdcblogdev.hashnode.net·Mar 18, 2023I'm writing a new Laravel book on testing called Laravel Testing CookbookLaravel 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 the book as a reference for practical examples of...Discuss·32 readsLaravel TestingLaravel
Geni JahoforGeni Jaho's Bloggenijaho.hashnode.net·Feb 1, 2023Development Driven TestingOne 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 hang of it. However, as part of my role, I had to wr...Discuss·297 readsPHP
Fiko BorizqyforFiko Borizqyfiko.hashnode.net·Jan 22, 2023Magento 2: How to Create Unit Testing?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. 1. Create Helper You can follow to create this Hel...Discuss·1 like·105 readsMagento 2: Unit TestMagento
Mark CumminsforMarks Dev Blogmc.hashnode.net·Sep 18, 2022A Better Way to Build a WordPress PluginThere'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's a great way to setup a new plugin, however you ...Discuss·73 readsWordPress
Manjit BaishyaforMy Coding Roadmapmy-coding-roadmap.hashnode.net·Aug 11, 2022Day 4: Data-types in PHPThere 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, rather, the variable gets the data-type automatically f...Discuss·54 readsPHPPHP