Skip to content

Instantly share code, notes, and snippets.

View GuillaumeDievart's full-sized avatar

GuillaumeDievart

View GitHub Profile
@GuillaumeDievart
GuillaumeDievart / gist:7683829
Created November 27, 2013 21:48
The mock extension_loaded seems not be used
$this
->if($this->function->extension_loaded = false)
->then
->exception(function () { if (extension_loaded('mbstring') === false) { throw new exceptions\runtime('mbstring'); }})
;