Finished refactoring of exceptions

This commit is contained in:
Kevin Frantz
2019-04-15 01:37:17 +02:00
parent 9f179ead73
commit 06f69675ac
49 changed files with 159 additions and 135 deletions

View File

@@ -5,7 +5,7 @@ namespace Tests\Attribut;
use PHPUnit\Framework\TestCase;
use Infinito\Attribut\SlugAttributInterface;
use Infinito\Attribut\SlugAttribut;
use Infinito\Exception\UnvalidValueException;
use Infinito\Exception\Validation\ValueInvalidException;
/**
* @author kevinfrantz
@@ -42,7 +42,7 @@ class SlugAttributTest extends TestCase
public function testNumericSetException(): void
{
$this->expectException(UnvalidValueException::class);
$this->expectException(ValueInvalidException::class);
$this->slugAttribut->setSlug('1234');
}
}