public function theExitCodeShouldBe($code) { if ($this->lastExitCode !== (int) $code) { throw new \Exception(sprintf('The application existed with an unexpected code: expected: %s, actual: %s', $code, $this->lastExitCode)); } }