Skip to content

Commit

Permalink
Merge pull request #5 from exussum12/phpunit8
Browse files Browse the repository at this point in the history
Add PHPunit 8 support
  • Loading branch information
exussum12 authored Nov 26, 2020
2 parents 929ddc5 + ec5b46d commit 8e2b216
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
"description": "xxHash implementation in Pure PHP",
"type": "library",
"require": {
"phpunit/phpunit": "^7.1",
"php": ">=7.4",
"ext-bcmath": "*"
},
"require-dev": {
"phpunit/phpunit": "^7.1|^8.0"
},
"autoload": {
"psr-4": {
"exussum12\\xxhash\\": "src"
Expand Down
5 changes: 4 additions & 1 deletion tests/FFIH64HashTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ class FFIH64HashTest extends TestCase
{
protected V64 $hash;

public function setUp()
/**
* @before
*/
public function bootstrap()
{
$this->hash = new V64(0);
}
Expand Down
6 changes: 5 additions & 1 deletion tests/FFIHashTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,14 @@ class FFIHashTest extends TestCase
{
protected V32 $hash;

public function setUp()
/**
* @before
*/
public function bootstrap()
{
$this->hash = new V32(0);
}

public function testSingleByte()
{
$this->assertSame(
Expand Down
6 changes: 5 additions & 1 deletion tests/HashTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,14 @@ class HashTest extends TestCase
{
protected V32 $hash;

public function setUp()
/**
* @before
*/
public function bootstrap()
{
$this->hash = new V32(0);
}

public function testSingleByte()
{
$this->assertSame(
Expand Down

0 comments on commit 8e2b216

Please sign in to comment.