Make page count assertion more sensitive

refs #7163
This commit is contained in:
Johannes Meyer 2014-10-24 14:06:31 +02:00
parent 1bd5868a88
commit 851682cf18
1 changed files with 2 additions and 2 deletions

View File

@ -134,8 +134,8 @@ class Wizard
protected function assertHasPages()
{
$pages = $this->getPages();
if (empty($pages)) {
throw new LogicException('Although Chuck Norris can advance a wizard without any pages, you can\'t.');
if (count($pages) < 2) {
throw new LogicException("Although Chuck Norris can advance a wizard with less than two pages, you can't.");
}
}