/** * @dataProvider coercesOutputFloatProvider * * @param mixed $input * @param float|null $expected */ public function testCoercesOutputFloat($input, $expected) { $this->assertSame($expected, Type::floatType()->coerce($input)); }
/** * Re-populate static properties when de-serializing. */ public function __wakeup() { Type::intType(); Type::booleanType(); Type::floatType(); Type::idType(); Type::stringType(); }