/** * @test * @see http://forge.typo3.org/issues/20427 */ public function positive64BitIntegerIsSupported() { $this->createFakeExtension(' CREATE TABLE tx_test_dbal ( foo int default \'0\', foobar bigint default \'0\' ); '); $data = array('foo' => 9.223372036854776E+18, 'foobar' => 9.223372036854776E+18); $result = $this->subject->INSERTquery('tx_test_dbal', $data); $expected = 'INSERT INTO tx_test_dbal ( foo, foobar ) VALUES ( \'9223372036854775807\', \'9223372036854775807\' )'; $this->assertEquals($expected, $this->cleanSql($result)); }
/** * @test * @see http://forge.typo3.org/issues/20427 */ public function positive64BitIntegerIsSupported() { if (!is_int(9223372036854775806)) { $this->markTestSkipped('Test skipped because running on 32 bit system.'); } $this->createFakeExtension(' CREATE TABLE tx_test_dbal ( foo int default \'0\', foobar bigint default \'0\' ); '); $data = array('foo' => 9223372036854775807, 'foobar' => 9223372036854775807); $result = $this->subject->INSERTquery('tx_test_dbal', $data); $expected = 'INSERT INTO tx_test_dbal ( foo, foobar ) VALUES ( \'9223372036854775807\', \'9223372036854775807\' )'; $this->assertEquals($expected, $this->cleanSql($result)); }