Skip to content

Commit

Permalink
Fix method name
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Jul 17, 2024
1 parent 48eb304 commit cfa5f09
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/tests/StaticAnalysis/ExecutableLinesFindingVisitorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,42 +24,42 @@ final class ExecutableLinesFindingVisitorTest extends TestCase
{
public function testExecutableLinesAreGroupedByBranch(): void
{
$this->doTestSelfDescribingAsset(TEST_FILES_PATH . 'source_for_branched_exec_lines.php');
$this->doTestSelfDescribingAssert(TEST_FILES_PATH . 'source_for_branched_exec_lines.php');
}

/**
* @requires PHP 7.4
*/
public function testExecutableLinesAreGroupedByBranchPhp74(): void
{
$this->doTestSelfDescribingAsset(TEST_FILES_PATH . 'source_for_branched_exec_lines_php74.php');
$this->doTestSelfDescribingAssert(TEST_FILES_PATH . 'source_for_branched_exec_lines_php74.php');
}

/**
* @requires PHP 8
*/
public function testExecutableLinesAreGroupedByBranchPhp80(): void
{
$this->doTestSelfDescribingAsset(TEST_FILES_PATH . 'source_for_branched_exec_lines_php80.php');
$this->doTestSelfDescribingAssert(TEST_FILES_PATH . 'source_for_branched_exec_lines_php80.php');
}

/**
* @requires PHP 8.1
*/
public function testExecutableLinesAreGroupedByBranchPhp81(): void
{
$this->doTestSelfDescribingAsset(TEST_FILES_PATH . 'source_for_branched_exec_lines_php81.php');
$this->doTestSelfDescribingAssert(TEST_FILES_PATH . 'source_for_branched_exec_lines_php81.php');
}

/**
* @requires PHP 8.2
*/
public function testExecutableLinesAreGroupedByBranchPhp82(): void
{
$this->doTestSelfDescribingAsset(TEST_FILES_PATH . 'source_for_branched_exec_lines_php82.php');
$this->doTestSelfDescribingAssert(TEST_FILES_PATH . 'source_for_branched_exec_lines_php82.php');
}

private function doTestSelfDescribingAsset(string $filename): void
private function doTestSelfDescribingAssert(string $filename): void
{
$source = file_get_contents($filename);
$parser = (new ParserFactory)->createForHostVersion();
Expand Down

0 comments on commit cfa5f09

Please sign in to comment.