Browse Source

Updating some tests so they report correct status in hhvm

Jose Lorenzo Rodriguez 11 years ago
parent
commit
37b52e6048

+ 1 - 0
tests/TestCase/Cache/Engine/MemcachedEngineTest.php

@@ -580,6 +580,7 @@ class MemcachedEngineTest extends TestCase {
  * @return void
  */
 	public function testDeleteMany() {
+		$this->assertFalse(defined('HHVM_VERSION'), 'Crashes HHVM');
 		$this->_configCache();
 		$data = array(
 			'App.falseTest' => false,

+ 0 - 4
tests/TestCase/Collection/CollectionTest.php

@@ -86,7 +86,6 @@ class CollectionTest extends TestCase {
  * @return void
  */
 	public function testFilterChaining() {
-		$this->assertFalse(defined('HHVM_VERSION'), 'Broken on HHVM');
 		$items = ['a' => 1, 'b' => 2, 'c' => 3];
 		$collection = new Collection($items);
 		$callable = $this->getMock('stdClass', ['__invoke']);
@@ -107,7 +106,6 @@ class CollectionTest extends TestCase {
  * @return void
  */
 	public function testReject() {
-		$this->assertFalse(defined('HHVM_VERSION'), 'Broken on HHVM');
 		$items = ['a' => 1, 'b' => 2, 'c' => 3];
 		$collection = new Collection($items);
 		$result = $collection->reject(function ($v, $k, $items) use ($collection) {
@@ -558,7 +556,6 @@ class CollectionTest extends TestCase {
  * @return void
  */
 	public function testMatch() {
-		$this->assertFalse(defined('HHVM_VERSION'), 'Broken on HHVM');
 		$items = [
 			['id' => 1, 'name' => 'foo', 'thing' => ['parent_id' => 10]],
 			['id' => 2, 'name' => 'bar', 'thing' => ['parent_id' => 11]],
@@ -587,7 +584,6 @@ class CollectionTest extends TestCase {
  * @return void
  */
 	public function testFirstMatch() {
-		$this->assertFalse(defined('HHVM_VERSION'), 'Broken on HHVM');
 		$items = [
 			['id' => 1, 'name' => 'foo', 'thing' => ['parent_id' => 10]],
 			['id' => 2, 'name' => 'bar', 'thing' => ['parent_id' => 11]],

+ 0 - 1
tests/TestCase/Collection/Iterator/FilterIteratorTest.php

@@ -29,7 +29,6 @@ class FilterIteratorTest extends TestCase {
  * @return void
  */
 	public function testFilter() {
-		$this->assertFalse(defined('HHVM_VERSION'), 'Broken on HHVM');
 		$items = new \ArrayIterator([1, 2, 3]);
 		$callable = $this->getMock('stdClass', ['__invoke']);
 		$callable->expects($this->at(0))