Browse Source

Removing hacks that did not work in hhvm

Jose Lorenzo Rodriguez 12 years ago
parent
commit
42a60c8cf0
2 changed files with 1 additions and 3 deletions
  1. 1 1
      .travis.yml
  2. 0 2
      tests/TestCase/Database/Schema/SqliteSchemaTest.php

+ 1 - 1
.travis.yml

@@ -40,7 +40,7 @@ before_script:
   - set +H
 
 script:
-  - sh -c "if [ '$PHPCS' != '1' ] && [ '$HHVM' != '1' ]; then phpunit --stop-on-failure --stderr; elif [ '$PHPCS' != '1' ] && [ '$HHVM' = '1' ]; then phpunit --testsuite HHVM; else phpcs -p --extensions=php --standard=CakePHP ./src ./tests; fi"
+  - sh -c "if [ '$PHPCS' != '1' ] && [ '$HHVM' != '1' ]; then phpunit --stderr; elif [ '$PHPCS' != '1' ] && [ '$HHVM' = '1' ]; then phpunit --testsuite HHVM; else phpcs -p --extensions=php --standard=CakePHP ./src ./tests; fi"
 
 notifications:
   email: false

+ 0 - 2
tests/TestCase/Database/Schema/SqliteSchemaTest.php

@@ -811,7 +811,6 @@ SQL;
 			'\PDOStatement',
 			['execute', 'rowCount', 'closeCursor', 'fetch']
 		);
-		$statement->queryString = '';
 		$driver->connection()->expects($this->once())->method('prepare')
 			->with('SELECT 1 FROM sqlite_master WHERE name = "sqlite_sequence"')
 			->will($this->returnValue($statement));
@@ -842,7 +841,6 @@ SQL;
 			'\PDOStatement',
 			['execute', 'rowCount', 'closeCursor', 'fetch']
 		);
-		$statement->queryString = '';
 		$driver->connection()->expects($this->once())->method('prepare')
 			->with('SELECT 1 FROM sqlite_master WHERE name = "sqlite_sequence"')
 			->will($this->returnValue($statement));