/** * This method tests the "toString" method. * * @dataProvider data_toString */ public function test_toString(array $provided, array $expected) { $this->markTestIncomplete(); $p0 = IArrayList\Type::make($provided[0])->toString(); $e0 = $expected[0]; $this->assertInstanceOf('\\Saber\\Data\\IString\\Type', $p0); $this->assertSame($e0, $p0->unbox()); }
/** * This method tests the "or" method. * * @dataProvider data_or */ public function test_or(array $provided, array $expected) { $p0 = IArrayList\Type::make($provided[0], '\\Saber\\Data\\IBool\\Type'); $r0 = IArrayList\Module::or_($p0); $e0 = $expected[0]; $this->assertInstanceOf('\\Saber\\Data\\IBool\\Type', $r0); $this->assertSame($e0, $r0->unbox()); }
/** * 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 IArrayList\Type the boxed object * @throws Throwable\InvalidArgument\Exception indicates an invalid argument */ public static function make2(...$xs) : IArrayList\Type { return IArrayList\Type::make($xs); }