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\File;
use Ktomk\Pipelines\TestCase;
/**
* @covers \Ktomk\Pipelines\File\ParseException
*/
class ParseExceptionTest extends TestCase
{
* @return ParseException
public function testCreation()
$exception = new ParseException('message string');
self::assertInstanceOf('Ktomk\Pipelines\File\ParseException', $exception);
self::assertInstanceOf('InvalidArgumentException', $exception);
self::assertInstanceOf('Exception', $exception);
return $exception;
}
* @param ParseException $exception
* @depends testCreation
public function testGetParseMessage(ParseException $exception)
self::assertIsString($exception->getParseMessage());
public function testThrowing()
$this->expectException('Ktomk\Pipelines\File\ParseException');
$this->expectExceptionMessage('message string');
throw new ParseException('message string');