Browse Source

Fix condition for skipping 32 bit systems

Ceeram 11 years ago
parent
commit
2b931983c2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/TestCase/Database/TypeTest.php

+ 1 - 1
tests/TestCase/Database/TypeTest.php

@@ -206,7 +206,7 @@ class TypeTest extends \Cake\TestSuite\TestCase {
  */
 	public function testBigintegerToPHP() {
 		$this->skipIf(
-			isset($_SERVER['PROCESSOR_ARCHITECTURE']) && $_SERVER['PROCESSOR_ARCHITECTURE'] === 'x86',
+			PHP_INT_SIZE === 4,
 			'This test requires a php version compiled for 64 bits'
 		);
 		$type = Type::build('biginteger');