コード例 #1
0
 /**
  * @Then /^there should be (\d+) promotion(?:|s)$/
  */
 public function thereShouldBePromotion($number)
 {
     Assert::same((int) $number, $this->indexPage->countItems(), 'I should see %s promotions but i see only %2$s');
 }
コード例 #2
0
 /**
  * @Then I should see :count promotions on the list
  */
 public function iShouldSeePromotionsOnTheList($count)
 {
     $actualCount = $this->indexPage->countItems();
     Assert::same((int) $count, $actualCount, 'There should be %s promotion, but there\'s %2$s.');
 }