helper = new \OC\LargeFileHelper;
}
public function testFormatUnsignedIntegerFloat(): void {
$this->assertSame(
'9007199254740992',
$this->helper->formatUnsignedInteger((float)9007199254740992)
);
}
public function testFormatUnsignedIntegerInt(): void {
$this->assertSame(
PHP_INT_SIZE === 4 ? '4294967295' : '18446744073709551615',
$this->helper->formatUnsignedInteger(-1)
);
}
public function testFormatUnsignedIntegerString(): void {
$this->assertSame(
'9007199254740993',
$this->helper->formatUnsignedInteger('9007199254740993')
);
}
public function testFormatUnsignedIntegerStringException(): void {
$this->expectException(\UnexpectedValueException::class);
$this->helper->formatUnsignedInteger('900ABCD254740993');
}
}
er'>3rdparty/stable29/sabre-dav-itip-broker
blob: 248cdc818f0903d0c1ea08cc2ee9db01e2dc8be1 (
plain)