Skip to content

Commit

Permalink
Added a new type to check against
Browse files Browse the repository at this point in the history
  • Loading branch information
Hotas2k committed Feb 16, 2018
1 parent a142770 commit f423c0e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Context/ApiContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -1101,6 +1101,10 @@ public function theBooleanFieldFieldShouldBeValue($typeOfValue, $field, $directi
case 'nullable':
$shouldBe = null;
break;
case 'countable':
$shouldBe = (int)$shouldBe;
$body = count($body);
break;
default:
$shouldBe = (string)$shouldBe;
}
Expand Down

0 comments on commit f423c0e

Please sign in to comment.