Tests: Docs: Correct @param
formatting in SpeedTrapListener
after [35226] and [45607].
See #48303. git-svn-id: https://develop.svn.wordpress.org/trunk@46882 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2c55227995
commit
b73180da85
@ -52,7 +52,7 @@ class SpeedTrapListener implements PHPUnit_Framework_TestListener {
|
||||
*
|
||||
* @param PHPUnit_Framework_Test $test
|
||||
* @param Exception $e
|
||||
* @param float $time
|
||||
* @param float $time
|
||||
*/
|
||||
public function addError( PHPUnit\Framework\Test $test, Throwable $t, float $time ): void {
|
||||
}
|
||||
@ -73,7 +73,7 @@ class SpeedTrapListener implements PHPUnit_Framework_TestListener {
|
||||
*
|
||||
* @param PHPUnit_Framework_Test $test
|
||||
* @param PHPUnit_Framework_AssertionFailedError $e
|
||||
* @param float $time
|
||||
* @param float $time
|
||||
*/
|
||||
public function addFailure( PHPUnit\Framework\Test $test, PHPUnit\Framework\AssertionFailedError $e, float $time ): void {
|
||||
}
|
||||
@ -83,7 +83,7 @@ class SpeedTrapListener implements PHPUnit_Framework_TestListener {
|
||||
*
|
||||
* @param PHPUnit_Framework_Test $test
|
||||
* @param Exception $e
|
||||
* @param float $time
|
||||
* @param float $time
|
||||
*/
|
||||
public function addIncompleteTest( PHPUnit\Framework\Test $test, Throwable $t, float $time ): void {
|
||||
}
|
||||
@ -93,7 +93,7 @@ class SpeedTrapListener implements PHPUnit_Framework_TestListener {
|
||||
*
|
||||
* @param PHPUnit_Framework_Test $test
|
||||
* @param Exception $e
|
||||
* @param float $time
|
||||
* @param float $time
|
||||
* @since Method available since Release 4.0.0
|
||||
*/
|
||||
public function addRiskyTest( PHPUnit\Framework\Test $test, Throwable $t, float $time ): void {
|
||||
@ -104,7 +104,7 @@ class SpeedTrapListener implements PHPUnit_Framework_TestListener {
|
||||
*
|
||||
* @param PHPUnit_Framework_Test $test
|
||||
* @param Exception $e
|
||||
* @param float $time
|
||||
* @param float $time
|
||||
*/
|
||||
public function addSkippedTest( PHPUnit\Framework\Test $test, Throwable $t, float $time ): void {
|
||||
}
|
||||
@ -121,7 +121,7 @@ class SpeedTrapListener implements PHPUnit_Framework_TestListener {
|
||||
* A test ended.
|
||||
*
|
||||
* @param PHPUnit_Framework_Test $test
|
||||
* @param float $time
|
||||
* @param float $time
|
||||
*/
|
||||
public function endTest( PHPUnit\Framework\Test $test, float $time ): void {
|
||||
if ( ! $test instanceof PHPUnit_Framework_TestCase ) {
|
||||
@ -165,7 +165,7 @@ class SpeedTrapListener implements PHPUnit_Framework_TestListener {
|
||||
/**
|
||||
* Whether the given test execution time is considered slow.
|
||||
*
|
||||
* @param int $time Test execution time in milliseconds
|
||||
* @param int $time Test execution time in milliseconds
|
||||
* @param int $slow_threshold Test execution time at which a test should be considered slow (milliseconds)
|
||||
* @return bool
|
||||
*/
|
||||
@ -177,7 +177,7 @@ class SpeedTrapListener implements PHPUnit_Framework_TestListener {
|
||||
* Stores a test as slow.
|
||||
*
|
||||
* @param PHPUnit_Framework_TestCase $test
|
||||
* @param int $time Test execution time in milliseconds
|
||||
* @param int $time Test execution time in milliseconds
|
||||
*/
|
||||
protected function addSlowTest( PHPUnit_Framework_TestCase $test, $time ) {
|
||||
$label = $this->makeLabel( $test );
|
||||
|
@ -52,7 +52,7 @@ class SpeedTrapListener implements PHPUnit_Framework_TestListener {
|
||||
*
|
||||
* @param PHPUnit_Framework_Test $test
|
||||
* @param Exception $e
|
||||
* @param float $time
|
||||
* @param float $time
|
||||
*/
|
||||
public function addError( PHPUnit_Framework_Test $test, Exception $e, $time ) {
|
||||
}
|
||||
@ -73,7 +73,7 @@ class SpeedTrapListener implements PHPUnit_Framework_TestListener {
|
||||
*
|
||||
* @param PHPUnit_Framework_Test $test
|
||||
* @param PHPUnit_Framework_AssertionFailedError $e
|
||||
* @param float $time
|
||||
* @param float $time
|
||||
*/
|
||||
public function addFailure( PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, $time ) {
|
||||
}
|
||||
@ -83,7 +83,7 @@ class SpeedTrapListener implements PHPUnit_Framework_TestListener {
|
||||
*
|
||||
* @param PHPUnit_Framework_Test $test
|
||||
* @param Exception $e
|
||||
* @param float $time
|
||||
* @param float $time
|
||||
*/
|
||||
public function addIncompleteTest( PHPUnit_Framework_Test $test, Exception $e, $time ) {
|
||||
}
|
||||
@ -93,7 +93,7 @@ class SpeedTrapListener implements PHPUnit_Framework_TestListener {
|
||||
*
|
||||
* @param PHPUnit_Framework_Test $test
|
||||
* @param Exception $e
|
||||
* @param float $time
|
||||
* @param float $time
|
||||
* @since Method available since Release 4.0.0
|
||||
*/
|
||||
public function addRiskyTest( PHPUnit_Framework_Test $test, Exception $e, $time ) {
|
||||
@ -104,7 +104,7 @@ class SpeedTrapListener implements PHPUnit_Framework_TestListener {
|
||||
*
|
||||
* @param PHPUnit_Framework_Test $test
|
||||
* @param Exception $e
|
||||
* @param float $time
|
||||
* @param float $time
|
||||
*/
|
||||
public function addSkippedTest( PHPUnit_Framework_Test $test, Exception $e, $time ) {
|
||||
}
|
||||
@ -121,7 +121,7 @@ class SpeedTrapListener implements PHPUnit_Framework_TestListener {
|
||||
* A test ended.
|
||||
*
|
||||
* @param PHPUnit_Framework_Test $test
|
||||
* @param float $time
|
||||
* @param float $time
|
||||
*/
|
||||
public function endTest( PHPUnit_Framework_Test $test, $time ) {
|
||||
if ( ! $test instanceof PHPUnit_Framework_TestCase ) {
|
||||
@ -165,7 +165,7 @@ class SpeedTrapListener implements PHPUnit_Framework_TestListener {
|
||||
/**
|
||||
* Whether the given test execution time is considered slow.
|
||||
*
|
||||
* @param int $time Test execution time in milliseconds
|
||||
* @param int $time Test execution time in milliseconds
|
||||
* @param int $slow_threshold Test execution time at which a test should be considered slow (milliseconds)
|
||||
* @return bool
|
||||
*/
|
||||
@ -177,7 +177,7 @@ class SpeedTrapListener implements PHPUnit_Framework_TestListener {
|
||||
* Stores a test as slow.
|
||||
*
|
||||
* @param PHPUnit_Framework_TestCase $test
|
||||
* @param int $time Test execution time in milliseconds
|
||||
* @param int $time Test execution time in milliseconds
|
||||
*/
|
||||
protected function addSlowTest( PHPUnit_Framework_TestCase $test, $time ) {
|
||||
$label = $this->makeLabel( $test );
|
||||
|
Loading…
Reference in New Issue
Block a user