Adding Unit tests to a WordPress plugin via VVV and PHPUnit

While the official documentation can be found at https://make.wordpress.org/core/handbook/testing/automated-testing/phpunit/ , this is very far from being approachable to folks who are just starting (like me). It honestly took half a dozen of tries during the last year to make it work as expected. While steps 1 ( Install PHPUnit ), and 2 ( Install WP-CLI ) are somewhat clear, step 3 ( Use WP-CLI to … Continue reading Adding Unit tests to a WordPress plugin via VVV and PHPUnit

Advertisements

NullReferenceException: Object reference not set to an instance of an object

This is a problem I face so many times that I need to write it as a reminder for my future self. How to fix Null Reference Exceptions: What does it mean that an object reference is not set to an instance of an object. Let’s say we have a method we want to call, this function is in script B, and you want to … Continue reading NullReferenceException: Object reference not set to an instance of an object

Roguelike C# in Unity (3/13): Generating a dungeon

Welcome to the 3rd part of the tutorial! The original Python tutorial can be found here. Previous posts for C# in Unity: 1- RogueLike C# in Unity (1/13): Drawing the ‘@’ symbol and moving it around 2- RogueLike C# in Unity (2/13): The generic Entity, the render functions, and the map This is starting to get complex, in this tutorial we’ll keep working in our … Continue reading Roguelike C# in Unity (3/13): Generating a dungeon

RogueLike C# in Unity (2/13): The generic Entity, the render functions, and the map

Part 2 is here. This week we’ll create a generic Entity from where we’ll create all our entities, we’ll skip the original render functions from the original Python version, as won’t be used here, and finally we’ll create a basic map where we’ll be moving around. Don’t forget to check out the previous parts of the tutorial: Part 1: RogueLike C# in Unity (1/13): Drawing … Continue reading RogueLike C# in Unity (2/13): The generic Entity, the render functions, and the map

Roguelike C# in Unity (1/13): Drawing the ‘@’ symbol and moving it around

The intention of this serie is not to rewrite the Roguelike tutorial, but to offer an alternative implementation using C# in Unity. I discovered pretty soon that the tutorial above will only help me to scope each week’s work, but the implementation will be very different between Python and C# . This week our main objective is to draw the “@” symbol that represents the … Continue reading Roguelike C# in Unity (1/13): Drawing the ‘@’ symbol and moving it around