Skip to content

Commit

Permalink
Remove PHPUnit_Extensions_TicketListener and PHPUnit_Util_Test::getTi…
Browse files Browse the repository at this point in the history
…ckets()
  • Loading branch information
sebastianbergmann committed Sep 22, 2016
1 parent 331b16a commit c9f8fe1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 234 deletions.
2 changes: 2 additions & 0 deletions ChangeLog-6.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ All notable changes of the PHPUnit 6.0 release series are documented in this fil
* Removed `PHPUnit\Framework\TestCase::setExpectedException()` (deprecated in PHPUnit 5.2)
* Removed `PHPUnit\Framework\TestCase::setExpectedExceptionRegExp()` (deprecated in PHPUnit 5.6)
* Removed `PHPUnit\Framework\TestCase::hasPerformedExpectationsOnOutput()` (deprecated in PHPUnit 4.3)
* Removed the `PHPUnit_Extensions_TicketListener` class
* Removed the `PHPUnit_Util_Test::getTickets()` method
* Removed the `checkForUnintentionallyCoveredCode` configuration setting (deprecated in PHPUnit 5.2)
* Removed the `--self-update` and `--self-upgrade` commandline options
* Removed the `--report-useless-tests` commandline option
Expand Down
204 changes: 0 additions & 204 deletions src/Extensions/TicketListener.php

This file was deleted.

30 changes: 0 additions & 30 deletions src/Util/Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -773,36 +773,6 @@ public static function getSize($className, $methodName)
return $size;
}

/**
* Returns the tickets for a test class or method.
*
* @param string $className
* @param string $methodName
*
* @return array
*
* @since Method available since Release 3.4.0
*/
public static function getTickets($className, $methodName)
{
$annotations = self::parseTestMethodAnnotations(
$className,
$methodName
);

$tickets = [];

if (isset($annotations['class']['ticket'])) {
$tickets = $annotations['class']['ticket'];
}

if (isset($annotations['method']['ticket'])) {
$tickets = array_merge($tickets, $annotations['method']['ticket']);
}

return array_unique($tickets);
}

/**
* Returns the process isolation settings for a test.
*
Expand Down

0 comments on commit c9f8fe1

Please sign in to comment.