for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SMW\Tests\Utils;
use Psr\Log\AbstractLogger;
/**
* @group semantic-mediawiki
*
* @license GNU GPL v2+
* @since 2.5
* @author mwjames
*/
class SpyLogger extends AbstractLogger {
* @var array
private $logs = array();
* {@inheritDoc}
public function log( $level, $message, array $context = array() ) {
$this->logs[] = array( $level, $message, $context );
}
* @return array
public function getLogs() {
return $this->logs;