Skip to content

Instantly share code, notes, and snippets.

View Marascon's full-sized avatar
🎯
Focusing

Marascon Marascon

🎯
Focusing
  • Netherlands
View GitHub Profile
@Potherca
Potherca / phpunit-testcase-changelog-summary.md
Last active November 23, 2021 15:37
Summary of the most prevalent changes in the `TestCase` class across PHPUnit versions

Introduction

The most broadly extended class of PHPUnit is \PHPUnit\Framework\TestCase

As PHPUnit evolved over the years, functionality has been added, deprecated and removed

This document tries to deliver an exhaustive list of which version a specific feature has been added or removed.

The main motivation behind this is make it easier to create test-code that is compattible across various PHPUnit versions.

@Potherca
Potherca / Everything Wrong with the Code on That Mug.md
Last active October 17, 2022 04:27
Everything Wrong with the Code on That Mug

There is a post going round on facebook of a mug with some code on it. There's even a reddit post on it. The mug looks quite nice but sadly the code on it is crap.

  • The code is not placed in a separate namespace
  • A var keyword is not used when assigning the Coffee object
  • The object oriented style abstraction is broken
  • There is no container for the coffee
@tunnckoCore
tunnckoCore / 1-table-of-contents.md
Last active September 1, 2021 17:07
Markdown (marked.js) Media Extras - Youtube, Vimeo, DailyMotion, Viddler

Table Of Contents

  • this.gist (this gist, haha)
  • [About][2] enhancement
  • [Usage][4]
  • [JsBin Demo][5]
  • [Integrate][3] with [chjj/marked@0.3.2][6]

Most powerful GFM(-ish) markdown compilier/parser, [chjj/marked@0.3.2][6] already with VIDEO MEDIA EXTRAS!