Skip to content
This repository has been archived by the owner on Jul 26, 2021. It is now read-only.

Commit

Permalink
Compatibility with recent PHPUnit (8)
Browse files Browse the repository at this point in the history
  • Loading branch information
David Prévot authored and sebastianbergmann committed Oct 5, 2019
1 parent 995192d commit 36bdcb9
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/Token/ClassTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class PHP_Token_ClassTest extends TestCase
*/
private $function;

protected function setUp()
protected function setUp(): void
{
foreach (new PHP_Token_Stream(TEST_FILES_PATH . 'source2.php') as $token) {
if ($token instanceof PHP_Token_CLASS) {
Expand Down
2 changes: 1 addition & 1 deletion tests/Token/ClosureTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class PHP_Token_ClosureTest extends TestCase
*/
private $functions;

protected function setUp()
protected function setUp(): void
{
foreach (new PHP_Token_Stream(TEST_FILES_PATH . 'closure.php') as $token) {
if ($token instanceof PHP_Token_FUNCTION) {
Expand Down
2 changes: 1 addition & 1 deletion tests/Token/FunctionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class PHP_Token_FunctionTest extends TestCase
*/
private $functions;

protected function setUp()
protected function setUp(): void
{
foreach (new PHP_Token_Stream(TEST_FILES_PATH . 'source.php') as $token) {
if ($token instanceof PHP_Token_FUNCTION) {
Expand Down
2 changes: 1 addition & 1 deletion tests/Token/IncludeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class PHP_Token_IncludeTest extends TestCase
*/
private $ts;

protected function setUp()
protected function setUp(): void
{
$this->ts = new PHP_Token_Stream(TEST_FILES_PATH . 'source3.php');
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Token/InterfaceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class PHP_Token_InterfaceTest extends TestCase
*/
private $interfaces;

protected function setUp()
protected function setUp(): void
{
$ts = new PHP_Token_Stream(TEST_FILES_PATH . 'source4.php');
$i = 0;
Expand Down

0 comments on commit 36bdcb9

Please sign in to comment.