Browse Source

Fix hhvm?

Timothy J. Warren 3 years ago
parent
commit
8b6e6ddcb7
2 changed files with 3 additions and 2 deletions
  1. 1
    0
      .scrutinizer.yml
  2. 2
    2
      tests/models/FriendModelTest.php

+ 1
- 0
.scrutinizer.yml View File

@@ -4,6 +4,7 @@ filter:
4 4
        - tests/*
5 5
        - vendor/*
6 6
        - application/third_party/*
7
+       - system/*
7 8
 
8 9
 imports:
9 10
     - php

+ 2
- 2
tests/models/FriendModelTest.php View File

@@ -28,7 +28,7 @@ class FriendModelTest extends Todo_TestCase {
28 28
 		]);
29 29
 
30 30
 		$expected = [
31
-			7 => array (
31
+			array (
32 32
 				'user_friend_id' => '1',
33 33
 				'uid' => '7',
34 34
 				'username' => 'timw4mail',
@@ -41,7 +41,7 @@ class FriendModelTest extends Todo_TestCase {
41 41
 			),
42 42
 		];
43 43
 		$actual = $this->CI->friend_model->get_friends();
44
-		$this->assertEquals($expected, $actual);
44
+		$this->assertEquals($expected, array_values($actual));
45 45
 
46 46
 		// Now test a lack of friends
47 47
 		$this->CI->session->set_userdata([