Refactored ValidationException (-> InvalidArgumentException).
This commit is contained in:
parent
cdc926c62a
commit
2a3adf25af
20 changed files with 79 additions and 91 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue