Browse Source

Skiping a test that will not run in x86

Jose Lorenzo Rodriguez 12 years ago
parent
commit
4d6f809f4c
1 changed files with 4 additions and 0 deletions
  1. 4 0
      tests/TestCase/Database/TypeTest.php

+ 4 - 0
tests/TestCase/Database/TypeTest.php

@@ -203,6 +203,10 @@ class TypeTest extends \Cake\TestSuite\TestCase {
  * @return void
  */
 	public function testBigintegerToPHP() {
+		$this->skipIf(
+			isset($_SERVER['PROCESSOR_ARCHITECTURE']) && $_SERVER['PROCESSOR_ARCHITECTURE'] === 'x86',
+			'This test requires a php version compiled for 64 bits'
+		);
 		$type = Type::build('biginteger');
 		$integer = time() * time();
 		$driver = $this->getMock('\Cake\Database\Driver');