Skip to content

Writing Good Tests

bitslip6 edited this page Dec 10, 2020 · 1 revision

Testing Functions

Pure functions are easy to test, and once you get used to them, easy to write. What are pure function? Pure functions have no external dependencies and depend on no outside state. Let's take a look.

<?php
function 
Clone this wiki locally