From 8b6e6ddcb7deef9ec58b2d9663c0a31cfbe10445 Mon Sep 17 00:00:00 2001 From: "Timothy J. Warren" Date: Wed, 13 Aug 2014 21:47:50 -0400 Subject: [PATCH] Fix hhvm? --- .scrutinizer.yml | 1 + tests/models/FriendModelTest.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.scrutinizer.yml b/.scrutinizer.yml index bae658c..8e39d81 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -4,6 +4,7 @@ filter: - tests/* - vendor/* - application/third_party/* + - system/* imports: - php diff --git a/tests/models/FriendModelTest.php b/tests/models/FriendModelTest.php index 03dc14c..ab24810 100755 --- a/tests/models/FriendModelTest.php +++ b/tests/models/FriendModelTest.php @@ -28,7 +28,7 @@ class FriendModelTest extends Todo_TestCase { ]); $expected = [ - 7 => array ( + array ( 'user_friend_id' => '1', 'uid' => '7', 'username' => 'timw4mail', @@ -41,7 +41,7 @@ class FriendModelTest extends Todo_TestCase { ), ]; $actual = $this->CI->friend_model->get_friends(); - $this->assertEquals($expected, $actual); + $this->assertEquals($expected, array_values($actual)); // Now test a lack of friends $this->CI->session->set_userdata([