Skip to content

Commit

Permalink
Update test suite to support PHPUnit 7
Browse files Browse the repository at this point in the history
  • Loading branch information
clue committed Dec 29, 2021
1 parent d4182e5 commit 07fe4d5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"require-dev": {
"clue/phar-composer": "^1.3",
"phpunit/phpunit": "^4.8.36"
"phpunit/phpunit": "^7.5 || ^5.7 || ^4.8.36"
},
"autoload": {
"psr-0": { "Clue\\GraphComposer": "src/" }
Expand Down
3 changes: 2 additions & 1 deletion tests/AppTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<?php

use Clue\GraphComposer\App;
use PHPUnit\Framework\TestCase;

class AppTest extends PHPUnit_Framework_TestCase
class AppTest extends TestCase
{
public function testVersionReturnsDev()
{
Expand Down
5 changes: 3 additions & 2 deletions tests/GraphComposerTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<?php

use Clue\GraphComposer\Graph\GraphComposer;
use Graphp\GraphViz\GraphViz;
use Fhaculty\Graph\Graph;
use Graphp\GraphViz\GraphViz;
use PHPUnit\Framework\TestCase;

class GraphVizMockDisplay extends GraphViz
{
Expand Down Expand Up @@ -31,7 +32,7 @@ public function setFormat($format)
}
}

class GraphTest extends PHPUnit_Framework_TestCase
class GraphTest extends TestCase
{
public function testCreateGraph()
{
Expand Down

0 comments on commit 07fe4d5

Please sign in to comment.