for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace TraderInteractiveTest\Exceptions;
use PHPUnit\Framework\TestCase;
use TraderInteractive\Exceptions\ReadOnlyViolationException;
/**
* @coversDefaultClass \TraderInteractive\Exceptions\ReadOnlyViolationException
*/
final class ReadOnlyViolationExceptionTest extends TestCase
{
* @test
* @coversNothing
*
* @return void
public function basicUsage()
$expected = 'You cannot do that.';
$exception = new ReadOnlyViolationException($expected);
$actual = $exception->getMessage();
$this->assertSame($expected, $actual);
}