for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Graze\Monolog;
use Mockery as m;
use Psr\Log\LogLevel;
class ErrorHandlerBuilderTest extends \PHPUnit_Framework_TestCase
{
public function setUp()
$this->builder = new ErrorHandlerBuilder();
builder
}
public function testGetErrorLevelMap()
$this->assertSame(array(), $this->builder->getErrorLevelMap());
public function testSetErrorLevelMap()
$map = array('foo' => 'bar');
$this->builder->setErrorLevelMap($map);
$this->assertSame($map, $this->builder->getErrorLevelMap());
public function testGetExceptionLevel()
$this->assertSame(LogLevel::CRITICAL, $this->builder->getExceptionLevel());
public function testSetExceptionLevel()
$this->builder->setExceptionLevel('foo');
$this->assertSame('foo', $this->builder->getExceptionLevel());
public function testGetFatalLevel()
$this->assertNull($this->builder->getFatalLevel());
public function testSetFatalLevel()
$this->builder->setFatalLevel('foo');
$this->assertSame('foo', $this->builder->getFatalLevel());