Commit 10709708 authored by Simon Welsh's avatar Simon Welsh

Finishes updating to PHPUnit 5.7

Fixes #16
parent bf0aa9e6
# Changelog
## 5.7.0
* Updated to match PHPUnit 5.7
* Added:
+ `PHPUnit\Framework\Assert`
+ `PHPUnit\Framework\BaseTestListener`
+ `PHPUnit\Framework\TestListener`
+ `PHPUnit_Framework_TestCase::markAsRisky`
+ `$includeWarnings` argument to `PHPUnit_Framework_TestResult::wasSuccessful`
* Renamed:
+ `PHPUnit_Framework_ExceptionWrapper::$classname` to
`PHPUnit_Framework_ExceptionWrapper::$className`
+ `PHPUnit_Framework_ExceptionWrapper::getClassname` to
`PHPUnit_Framework_ExceptionWrapper::getClassName`
## 5.6.0
* Updated to match PHPUnit 5.6
......
<?hh // decl
namespace PHPUnit\Framework;
abstract class Assert extends \PHPUnit_Framework_Assert {}
<?hh // decl
namespace PHPUnit\Framework;
abstract class BaseTestListener extends \PHPUnit_Framework_BaseTestListener {}
<?hh // decl
namespace PHPUnit\Framework;
interface TestListener extends \PHPUnit_Framework_TestListener {}
<?hh // decl
class PHPUnit_Framework_ExceptionWrapper extends PHPUnit_Framework_Exception {
protected classname<Exception> $classname;
protected classname<Exception> $className;
public function __construct(Exception $e);
public function getClassname(): classname<Exception>;
public function getClassName(): classname<Exception>;
public function getPreviousWrapper(): ?PHPUnit_Framework_ExceptionWrapper;
public function __toString(): string;
}
......@@ -56,6 +56,7 @@ abstract class PHPUnit_Framework_TestCase extends PHPUnit_Framework_Assert
public function isLarge(): bool;
public function isMedium(): bool;
public function isSmall(): bool;
public function markAsRisky(): void;
public function run(
?PHPUnit_Framework_TestResult $result = null,
): PHPUnit_Framework_TestResult;
......
......@@ -144,7 +144,7 @@ class PHPUnit_Framework_TestResult implements Countable {
public function time(): float;
public function wasSuccessful(): bool;
public function wasSuccessful(bool $includeWarnings = true): bool;
public function setTimeoutForSmallTests(int $timeout): void;
public function setTimeoutForMediumTests(int $timeout): void;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment