/** * Tests a given type * * @param lang.types.Number number * @param int int * @param float float */ protected function testType(\lang\types\Number $number, $int, $float) { $this->assertEquals($int, $number->intValue(), 'intValue'); $this->assertEquals($float, $number->floatValue(), 'floatValue'); $this->assertEquals($number, clone $number, 'clone'); }
/** * Tests a given type * * @param lang.types.Number number * @param int int * @param float float */ protected function testType(Number $number, $int, $float) { $this->assertEquals($int, $number->intValue(), 'intValue'); $this->assertEquals($float, $number->doubleValue(), 'doubleValue'); $this->assertEquals($number, clone $number, 'clone'); }