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

Compatibility with recent PHPUnit (8) #85

Merged
merged 1 commit into from
Oct 5, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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