Skip to content

Commit 737bdad

Browse files
authored
Merge pull request #3 from QuorumCollection/kill-travis
Replace Travis with GitHub Actions
2 parents 5cfae37 + 6c03599 commit 737bdad

File tree

4 files changed

+36
-26
lines changed

4 files changed

+36
-26
lines changed

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
on:
2+
- pull_request
3+
- push
4+
5+
name: CI
6+
7+
jobs:
8+
run:
9+
name: Tests
10+
11+
strategy:
12+
matrix:
13+
operating-system: [ubuntu-latest]
14+
php-versions: ['5.3', '5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2']
15+
16+
runs-on: ${{ matrix.operating-system }}
17+
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v3
21+
22+
- name: Install PHP
23+
uses: shivammathur/setup-php@v2
24+
with:
25+
php-version: ${{ matrix.php-versions }}
26+
27+
- name: Install dependencies with composer
28+
run: composer install
29+
30+
- name: Run tests
31+
run: ./vendor/bin/phpunit

.travis.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

composer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,11 @@
2020
"homepage": "http://github.com/henderjon"
2121
}
2222
],
23+
"require": {
24+
"php" : ">=5.3.0"
25+
},
2326
"require-dev": {
24-
"phpunit/phpunit": "~4.1"
27+
"phpunit/phpunit": "~4.8|~9"
2528
},
2629
"autoload" : {
2730
"files": ["src/array.php"]

test/ArrayFunctionsTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
class ArrayFunctionsTest extends PHPUnit_Framework_TestCase {
3+
class ArrayFunctionsTest extends \PHPUnit\Framework\TestCase {
44

55
public function testArrayFlatten() {
66
$this->assertEquals(
@@ -53,4 +53,3 @@ public function testArrayKeyRefill() {
5353

5454

5555
}
56-

0 commit comments

Comments
 (0)