Refactored ValidationException (-> InvalidArgumentException).

This commit is contained in:
Dmitry Khomutov 2018-03-17 09:24:30 +07:00
commit 2a3adf25af
No known key found for this signature in database
GPG key ID: EC19426474B37AAC
20 changed files with 79 additions and 91 deletions

View file

@ -81,7 +81,7 @@ class BuildTest extends TestCase
$result = $build->setStatus(Build::STATUS_FAILED);
self::assertEquals(false, $result);
self::expectException('\PHPCensor\Exception\HttpException\ValidationException');
self::expectException('\PHPCensor\Exception\InvalidArgumentException');
$build->setStatus(10);
}
@ -230,7 +230,7 @@ class BuildTest extends TestCase
$result = $build->setSource(Build::SOURCE_WEBHOOK_PULL_REQUEST);
self::assertEquals(false, $result);
self::expectException('\PHPCensor\Exception\HttpException\ValidationException');
self::expectException('\PHPCensor\Exception\InvalidArgumentException');
$build->setSource(20);
}