schmunk42\giiant\helpers\GiiantFaker::integer PHP Method

integer() public static method

public static integer ( string $methodName = '' ) : mixed
$methodName string model's attribute type trying to match Faker's method name
return mixed
    public static function integer($methodName = '')
    {
        $val = self::provider(self::TYPE_INTEGER, $methodName);
        return $val === null ? self::value(self::TYPE_INTEGER) : $val;
    }

Usage Example

Example #1
0
 public function testIntegerMethod()
 {
     $value = GiiantFaker::integer();
     $this->specify('returned value is integer', function () use($value) {
         expect('value is integer', is_integer($value))->true();
     });
 }