I'm checking out Codeception, and I'm trying to write my own grabber.
In my WebHelper.php:
function grabMaxOffers()
{
return 10;
}
(note: eventually, this will return a dynamic value)
In my TestCept.php file:
$max = $I->grabMaxOffers();
$I->wantToTest("Maximum offers ($max)");
There error I always get is:
PHP Notice: Object of class Codeception\Maybe could not be converted to int in tests/acceptance/TestCept.php on line 21
What am I missing? I wrote two other grabbers (returning strings) that worked fine.