/** * 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 ...$xss the value(s) to be boxed * @return IHashMap\Type the boxed object */ public static function make2(...$xss) : IHashMap\Type { // an array of tuples return IHashMap\Type::make($xss); }
/** * This method tests that a value is of a particular size. * * @dataProvider dataSize */ public function testSize(array $provided, array $expected) { //$this->markTestIncomplete(); $p0 = IHashMap\Type::make($provided)->size(); $this->assertInstanceOf('\\Saber\\Data\\IInt32\\Type', $p0); $p1 = $p0->unbox(); $e1 = $expected[0]; $this->assertSame($e1, $p1); }