예제 #1
0
 /**
  * This method tests that a value is of a particular size.
  *
  * @dataProvider dataSize
  */
 public function testSize(array $provided, array $expected)
 {
     //$this->markTestIncomplete();
     $p0 = IHashSet\Type::make($provided)->size();
     $this->assertInstanceOf('\\Saber\\Data\\IInt32\\Type', $p0);
     $p1 = $p0->unbox();
     $e1 = $expected[0];
     $this->assertSame($e1, $p1);
 }
예제 #2
0
 /**
  * This method returns a value as a boxed object.  A value is typically a PHP typed
  * primitive or object.  It is considered type-safe.
  *
  * @access public
  * @static
  * @param mixed ...$xs                                      the value(s) to be boxed
  * @return IHashSet\Type                                    the boxed object
  */
 public static function make2(...$xs) : IHashSet\Type
 {
     return IHashSet\Type::make($xs);
 }