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

Commit

Permalink
Merge pull request #1 from stdex/master
Browse files Browse the repository at this point in the history
Allow php 8.0
  • Loading branch information
SerafimArts authored Sep 15, 2021
2 parents fc77c67 + d2f73b6 commit 5f8e5f8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
language: php

php:
- 7.1
- 7.2
- 7.3
- 7.4
- 8.0

before_install:
- composer self-update
Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
}
],
"require": {
"php": "^7.1",
"cocur/slugify": "^3.1"
"php": ">=7.2",
"cocur/slugify": "^3.2"
},
"require-dev": {
"phpunit/phpunit": "~7.0",
"mockery/mockery": "^1.1"
"phpunit/phpunit": "^8.5|^9.0",
"mockery/mockery": "^1.3"
},
"autoload": {
"files": [
Expand Down
5 changes: 2 additions & 3 deletions tests/Helpers/StringsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,10 @@ public function testRandom()
$this->assertSame(64, strlen(Strings::random(64)));
}

/**
* @expectedException \RuntimeException
*/
public function testRandomBad()
{
$this->expectException(\RuntimeException::class);

Strings::random(0);
}

Expand Down

0 comments on commit 5f8e5f8

Please sign in to comment.