Skip to content

Commit

Permalink
changed phpunit version for tests
Browse files Browse the repository at this point in the history
fixed test class
  • Loading branch information
ogmueller committed Aug 5, 2019
1 parent 9bc5760 commit 1782f94
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
5 changes: 1 addition & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,10 @@
"symfony/console": "*"
},
"config": {
"platform": {
"php": "7.0.0"
},
"sort-packages": true
},
"require-dev": {
"phpunit/phpunit": "^5.7"
"phpunit/phpunit": "^6.5 || ^7.5"
},
"autoload": {
"psr-4": {
Expand Down
1 change: 0 additions & 1 deletion tests/CliTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ function __construct($name = null, array $data = array(), $dataName = '')
{
parent::__construct($name, $data, $dataName);
$this->cmd = __DIR__ . '/../bin/shamir.php';

}

/**
Expand Down
4 changes: 3 additions & 1 deletion tests/RandomTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use TQ\Shamir\Random\OpenSslGenerator;
use TQ\Shamir\Random\PhpGenerator;

class GeneratorTest extends TestCase
class RandomTest extends TestCase
{
protected $num = 100;
protected $byte = 3; // 3 bytes negative
Expand All @@ -16,6 +16,8 @@ class GeneratorTest extends TestCase

public function __construct()
{
parent::__construct();

$this->min = -1 << ($this->byte * 8);
$this->max = 1 << ($this->byte * 8);
}
Expand Down

0 comments on commit 1782f94

Please sign in to comment.