execute(function($example) { if (!is_array($example)) { return false; } return count($example); })->seeResultEquals(2); } /** * @return Generator */ protected function getTestData() { yield ['foo', 'bar']; yield [1, 2]; yield [true, false]; } }