Skip to content

Commit 68519a1

Browse files
committed
Support PHPUnit updates
1 parent cf3e49a commit 68519a1

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
composer.phar
44
composer.lock
55
.DS_Store
6+
.phpunit.result.cache

tests/NodeTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
class NodeTest extends PHPUnit\Framework\TestCase
77
{
8-
public static function setUpBeforeClass()
8+
public static function setUpBeforeClass(): void
99
{
1010
$schema = Capsule::schema();
1111

@@ -23,7 +23,7 @@ public static function setUpBeforeClass()
2323
Capsule::enableQueryLog();
2424
}
2525

26-
public function setUp()
26+
public function setUp(): void
2727
{
2828
$data = include __DIR__.'/data/categories.php';
2929

@@ -36,7 +36,7 @@ public function setUp()
3636
date_default_timezone_set('America/Denver');
3737
}
3838

39-
public function tearDown()
39+
public function tearDown(): void
4040
{
4141
Capsule::table('categories')->truncate();
4242
}

tests/ScopedNodeTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
class ScopedNodeTest extends PHPUnit\Framework\TestCase
77
{
8-
public static function setUpBeforeClass()
8+
public static function setUpBeforeClass(): void
99
{
1010
$schema = Capsule::schema();
1111

@@ -23,7 +23,7 @@ public static function setUpBeforeClass()
2323
Capsule::enableQueryLog();
2424
}
2525

26-
public function setUp()
26+
public function setUp(): void
2727
{
2828
$data = include __DIR__.'/data/menu_items.php';
2929

@@ -36,7 +36,7 @@ public function setUp()
3636
date_default_timezone_set('America/Denver');
3737
}
3838

39-
public function tearDown()
39+
public function tearDown(): void
4040
{
4141
Capsule::table('menu_items')->truncate();
4242
}

0 commit comments

Comments
 (0)