schmunk42\giiant\helpers\GiiantFaker::number PHP Méthode

number() public static méthode

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

Usage Example

Exemple #1
0
 public function testNumberMethod()
 {
     $value = GiiantFaker::number();
     $this->specify('returned value is float', function () use($value) {
         expect('value is float', is_float($value))->true();
     });
 }