Skip to content
This repository was archived by the owner on Jan 24, 2024. It is now read-only.

Commit 5f8e5f8

Browse files
authored
Merge pull request #1 from stdex/master
Allow php 8.0
2 parents fc77c67 + d2f73b6 commit 5f8e5f8

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
language: php
22

33
php:
4-
- 7.1
54
- 7.2
65
- 7.3
6+
- 7.4
7+
- 8.0
78

89
before_install:
910
- composer self-update

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
}
1111
],
1212
"require": {
13-
"php": "^7.1",
14-
"cocur/slugify": "^3.1"
13+
"php": ">=7.2",
14+
"cocur/slugify": "^3.2"
1515
},
1616
"require-dev": {
17-
"phpunit/phpunit": "~7.0",
18-
"mockery/mockery": "^1.1"
17+
"phpunit/phpunit": "^8.5|^9.0",
18+
"mockery/mockery": "^1.3"
1919
},
2020
"autoload": {
2121
"files": [

tests/Helpers/StringsTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,10 @@ public function testRandom()
2121
$this->assertSame(64, strlen(Strings::random(64)));
2222
}
2323

24-
/**
25-
* @expectedException \RuntimeException
26-
*/
2724
public function testRandomBad()
2825
{
26+
$this->expectException(\RuntimeException::class);
27+
2928
Strings::random(0);
3029
}
3130

0 commit comments

Comments
 (0)