Skip to content

Commit

Permalink
Merge c831840 into d66bf2b
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfnl committed Jun 16, 2022
2 parents d66bf2b + c831840 commit f6cceb1
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 6 deletions.
3 changes: 0 additions & 3 deletions Tests/BackCompat/Helper/GetCommandLineDataTest.inc

This file was deleted.

13 changes: 13 additions & 0 deletions Tests/BackCompat/Helper/GetCommandLineDataTest.php
Expand Up @@ -23,6 +23,19 @@
class GetCommandLineDataTest extends UtilityMethodTestCase
{

/**
* Initialize PHPCS & tokenize the test case file.
*
* @beforeClass
*
* @return void
*/
public static function setUpTestFile()
{
self::$caseFile = dirname(dirname(__DIR__)) . '/DummyFile.inc';
parent::setUpTestFile();
}

/**
* Test the getCommandLineData() method.
*
Expand Down
4 changes: 4 additions & 0 deletions Tests/DummyFile.inc
@@ -0,0 +1,4 @@
<?php

// Deliberately left empty.
// This is just a dummy test case file to get a PHPCS File object. Nothing more.
3 changes: 0 additions & 3 deletions Tests/Utils/FunctionDeclarations/GetParametersDiffTest.inc

This file was deleted.

13 changes: 13 additions & 0 deletions Tests/Utils/FunctionDeclarations/GetParametersDiffTest.php
Expand Up @@ -28,6 +28,19 @@
class GetParametersDiffTest extends UtilityMethodTestCase
{

/**
* Initialize PHPCS & tokenize the test case file.
*
* @beforeClass
*
* @return void
*/
public static function setUpTestFile()
{
self::$caseFile = dirname(dirname(__DIR__)) . '/DummyFile.inc';
parent::setUpTestFile();
}

/**
* Test passing a non-existent token pointer.
*
Expand Down

0 comments on commit f6cceb1

Please sign in to comment.