for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/* this file is part of pipelines */
namespace Ktomk\Pipelines;
/**
* @covers \Ktomk\Pipelines\ErrorCatcher
*/
class ErrorCatcherTest extends TestCase
{
public function testCreation()
$catcher = new ErrorCatcher();
self::assertInstanceOf('Ktomk\Pipelines\ErrorCatcher', $catcher);
$catcher = ErrorCatcher::create();
}
public function testEnd()
self::assertFalse($catcher->end());
public function testEndWithError()
trigger_error('test');
self::assertTrue($catcher->end());