You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
740 B
PHTML
26 lines
740 B
PHTML
5 years ago
|
<?php
|
||
|
|
||
|
namespace Engelsystem\Test\Unit\Http\Exceptions;
|
||
|
|
||
|
use Engelsystem\Http\Exceptions\ValidationException;
|
||
|
use Engelsystem\Http\Validation\Validator;
|
||
|
use PHPUnit\Framework\MockObject\MockObject;
|
||
|
use PHPUnit\Framework\TestCase;
|
||
|
|
||
|
class ValidationExceptionTest extends TestCase
|
||
|
{
|
||
|
/**
|
||
|
* @covers \Engelsystem\Http\Exceptions\ValidationException::__construct
|
||
|
* @covers \Engelsystem\Http\Exceptions\ValidationException::getValidator
|
||
|
*/
|
||
|
public function testConstruct()
|
||
|
{
|
||
|
/** @var Validator|MockObject $validator */
|
||
|
$validator = $this->createMock(Validator::class);
|
||
|
|
||
|
$exception = new ValidationException($validator);
|
||
|
|
||
|
$this->assertEquals($validator, $exception->getValidator());
|
||
|
}
|
||
|
}
|