Skip to content

Instantly share code, notes, and snippets.

@guiled
guiled / logger.php
Last active March 13, 2017 09:41
Test write to a file
<?php
namespace Project\Log\tests\units;
use \mageekguy\atoum;
class Logger extends atoum\test
{
public function testStdout()
@guiled
guiled / myClass.php
Last active March 17, 2017 10:09
Atoum How to mock a function
<?php
class myClass {
protected $creator;
public function set(callable $creator)
{
$this->creator = $creator
}