schmunk42\giiant\helpers\GiiantFaker::integer PHP 메소드

integer() 공개 정적인 메소드

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

Usage 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();
     });
 }