for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Knp\Bundle\SnappyBundle\Tests\Snappy\Response;
use Knp\Bundle\SnappyBundle\Snappy\Response\SnappyResponse;
use PHPUnit\Framework\TestCase;
class SnappyResponseTest extends TestCase
{
public function testExceptionMessage()
try {
new SnappyResponse('', 'test.jpg', 'image/jpg', 'foo');
} catch (\InvalidArgumentException $e) {
$this->assertSame('Expected one of the following directives: "inline", "attachment", but "foo" given.', $e->getMessage());
}