Skip to content

Instantly share code, notes, and snippets.

View emeraldinspirations's full-sized avatar

Matthew "Juniper" Barlett (KE0PVD) emeraldinspirations

View GitHub Profile
@emeraldinspirations
emeraldinspirations / sample.php
Last active August 15, 2017 05:31
Is random in test always bad?
<?php
class Demo
{
protected $Property;
public function getProperty() : int
{
return $this->Property;
}
@emeraldinspirations
emeraldinspirations / example.php
Created July 31, 2017 07:39
2017-07-31 - Why casting to Interface in PHP would be useless
<?php
/**
* Why casting to Interface in PHP would be useless.
*
* In applications I write, all function parameters are type hinted to
* interfaces except for base types and value objects. This allows the unit
* tests to supply dummy objects.
*
* The interfaces themselves have no logic inside, so the only test that they
@emeraldinspirations
emeraldinspirations / UseCase-Template
Created February 6, 2017 09:14 — forked from fourcube/UseCase-Template
Markdown Template for describing Use Cases
Use Case 1: (Target) Title (Type)
=================================
**Primary Actor**: User
**Scope**: Software system
**Level**: Summary / User Goal
Main success scenario:
----------------------
1. ...
2. ...