Newer
Older
framework / _support / Log / Handlers / MockChromeHandler.php
@Jim Parry Jim Parry on 1 Mar 2019 494 bytes Release 4.0.0-beta.1
<?php namespace Tests\Support\Log\Handlers;

/**
 * Class MockHandler
 *
 * Extends ChromeLoggerHandler, exposing some inner workings
 */

class MockChromeHandler extends \CodeIgniter\Log\Handlers\ChromeLoggerHandler
{

	//--------------------------------------------------------------------

	public function __construct(array $config)
	{
		parent::__construct($config);
	}

	// retrieve the message from the JSON response
	public function peekaboo()
	{
		return $this->json['rows'][0];
	}

}