Skip to content

Commit 6527c95

Browse files
committed
Running Github Workflow tests for Laravel 9*
1 parent 3fda99f commit 6527c95

File tree

4 files changed

+8
-37
lines changed

4 files changed

+8
-37
lines changed

.github/workflows/run-tests.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,18 @@ jobs:
99
fail-fast: true
1010
matrix:
1111
php: [7.2, 7.3, 7.4, 8.0, 8.1]
12-
laravel: [^6.0, ^7.0, ^8.0]
12+
laravel: [^6.0, ^7.0, ^8.0, ^9.0]
1313
dependency-version: [prefer-stable]
1414
os: [ubuntu-latest]
1515
exclude:
1616
- php: 7.2
1717
laravel: ^8.0
18+
- php: 7.2
19+
laravel: ^9.0
20+
- php: 7.3
21+
laravel: ^9.0
22+
- php: 7.4
23+
laravel: ^9.0
1824
- php: 8.1
1925
laravel: ^6.0
2026
- php: 8.1

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
],
1818
"require": {
1919
"php": "^7.2|^8.0|^8.1",
20-
"illuminate/support": "^6.0|^7.0|^8.0"
20+
"illuminate/support": "^6.0|^7.0|^8.0|^9.0"
2121
},
2222
"require-dev": {
2323
"orchestra/testbench": "^4.0|^5.0|^6.0|^7.0",

src/Arr.php

-17
Original file line numberDiff line numberDiff line change
@@ -152,21 +152,4 @@ public static function arrayMapMultiply(array $arrayToMultiply, array $arrayToMe
152152

153153
return $return;
154154
}
155-
156-
/**
157-
* Map the given array using a callback.
158-
*
159-
* @param \ArrayAccess|array $array
160-
* @param callable $callback
161-
* @param bool $useKeys
162-
* @return array
163-
*/
164-
public static function map(&$array, callable $callback, bool $useKeys = false) : array
165-
{
166-
if ($useKeys) {
167-
return array_map($callback, array_keys($array), $array);
168-
}
169-
170-
return array_map($callback, $array);
171-
}
172155
}

tests/ArrTest.php

-18
Original file line numberDiff line numberDiff line change
@@ -80,24 +80,6 @@ public function is_array_queryable_to_contain_strict_key_by_value()
8080
$this->assertNotSame($this->array, $helper);
8181
}
8282

83-
/** @test */
84-
public function is_array_mappable()
85-
{
86-
$helper = Arr::map($this->array, function ($item) {
87-
if (isset($item['test'])) {
88-
return $item;
89-
}
90-
91-
return [];
92-
});
93-
94-
$this->assertArrayHasKey('product2', $helper);
95-
96-
$this->assertEmpty($helper['product1']);
97-
98-
$this->assertNotSame($this->array, $helper);
99-
}
100-
10183
/** @test */
10284
public function is_array_key_replacable()
10385
{

0 commit comments

Comments
 (0)