/** * @Then /^(?:|the )suite should pass$/ */ public function theSuiteShouldPass() { $stats = $this->getRunStats(); expect($stats['examples'] > 0)->toBe(true); expect($stats['examples'])->toBe($stats['passed'] + $stats['skipped']); expect($this->applicationTester->getStatusCode())->toBe(0); }
/** * @Then the exit code should be :code */ public function theExitCodeShouldBe($code) { expect($this->applicationTester->getStatusCode())->toBe((int) $code); }