コード例 #1
0
ファイル: CoercionTest.php プロジェクト: fubhy/graphql-php
 /**
  * @dataProvider coercesOutputFloatProvider
  *
  * @param mixed $input
  * @param float|null $expected
  */
 public function testCoercesOutputFloat($input, $expected)
 {
     $this->assertSame($expected, Type::floatType()->coerce($input));
 }
コード例 #2
0
ファイル: Schema.php プロジェクト: fubhy/graphql-php
 /**
  * Re-populate static properties when de-serializing.
  */
 public function __wakeup()
 {
     Type::intType();
     Type::booleanType();
     Type::floatType();
     Type::idType();
     Type::stringType();
 }