Newer
Older
framework / tests / _support / Log / Handlers / MockChromeHandler.php
@Jim Parry Jim Parry on 25 Jul 2019 494 bytes Release 4.0.0-beta.4
<?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];
	}

}