Added tests for ProjectBuildRequest

This commit is contained in:
Jan Böhmer 2023-01-23 21:10:31 +01:00
parent f9dfb37273
commit eaef115d4b
2 changed files with 181 additions and 0 deletions

View file

@ -50,6 +50,10 @@ final class ProjectBuildRequest
*/
public function __construct(Project $project, int $number_of_builds)
{
if ($number_of_builds < 1) {
throw new \InvalidArgumentException('Number of builds must be at least 1!');
}
$this->project = $project;
$this->number_of_builds = $number_of_builds;