public function testDebug() { \FakeStaticLogger::$array = array(); \FakeStaticLogger::$array[] = array(debug_backtrace(false)); \FakeStaticLogger::$array[] = array(debug_backtrace(false)); $this->assert->array(\FakeStaticLogger::$array[0])->isEqualto(\FakeStaticLogger::$array[1]); }
public function testClosure() { \FakeStaticLogger::$array = array(); $config = array(array('path' => '\\Logger', 'level' => \Logger\Log::INFO, 'class' => function () { return new \FakeStaticLogger(); })); \Logger\Log::init($config); \Logger\Log::getInstance()->info('message'); $this->assert->array(\FakeStaticLogger::$array)->hasSize(1)->string(\FakeStaticLogger::$array[0][0])->isEqualTo('message'); }