Commit f5c6a543 authored by Simon Welsh's avatar Simon Welsh

Finishes updating to PHPUnit 5.6

Closes #15
parent ac83c78f
......@@ -6,10 +6,32 @@
* Added:
+ `PHPUnit_Framework_TestCase::createConfiguredMock`
+ `PHPUnit_Framework_TestCase::doesNotPerformAssertions`
+ `PHPUnit_Framework_TestCase::getProvidedData`
+ `PHPUnit_Framework_Assert::assertDirectoryExists`
+ `PHPUnit_Framework_Assert::assertDirectoryIsReadable`
+ `PHPUnit_Framework_Assert::assertDirectoryIsWritable`
+ `PHPUnit_Framework_Assert::assertDirectoryNotExists`
+ `PHPUnit_Framework_Assert::assertDirectoryNotIsReadable`
+ `PHPUnit_Framework_Assert::assertDirectoryNotIsWritable`
+ `PHPUnit_Framework_Assert::assertFileIsReadable`
+ `PHPUnit_Framework_Assert::assertFileIsWritable`
+ `PHPUnit_Framework_Assert::assertFileNotIsReadable`
+ `PHPUnit_Framework_Assert::assertFileNotIsWritable`
+ `PHPUnit_Framework_Assert::assertIsReadable`
+ `PHPUnit_Framework_Assert::assertIsWritable`
+ `PHPUnit_Framework_Assert::assertNotIsReadable`
+ `PHPUnit_Framework_Assert::assertNotIsWritable`
+ `PHPUnit_Framework_Assert::directoryExists`
+ `PHPUnit_Framework_Assert::isReadable`
+ `PHPUnit_Framework_Assert::isWritable`
+ `PHPUnit_Framework_Constraint_DirectoryExists`
+ `PHPUnit_Framework_Constraint_IsReadable`
+ `PHPUnit_Framework_Constraint_IsWritable`
* Deprecated:
+ `PHPUnit_Framework_TestCase::hasPerformedExpectationsOnOutput`
+ `PHPUnit_Framework_TestCase::setExpectedException`
+ `PHPUnit_Framework_TestCase::setExpectedExceptionRegExp`
* `\PHPUnit\Framework\TestCase` is now `abstract`
## 5.5.0
......
......@@ -2,4 +2,4 @@
namespace PHPUnit\Framework;
class TestCase extends \PHPUnit_Framework_TestCase {}
abstract class TestCase extends \PHPUnit_Framework_TestCase {}
......@@ -187,6 +187,30 @@ abstract class PHPUnit_Framework_Assert {
mixed $haystack,
string $message = '',
): void;
public function assertDirectoryExists(
string $directory,
string $message = '',
): void;
public function assertDirectoryIsReadable(
string $directory,
string $message = '',
): void;
public function assertDirectoryIsWritable(
string $directory,
string $message = '',
): void;
public function assertDirectoryNotExists(
string $directory,
string $message = '',
): void;
public function assertDirectoryNotIsReadable(
string $directory,
string $message = '',
): void;
public function assertDirectoryNotIsWritable(
string $directory,
string $message = '',
): void;
public function assertEmpty(mixed $actual, string $message = ''): void;
public function assertEqualXMLStructure(
/*DOMElement*/ $expected,
......@@ -213,6 +237,14 @@ abstract class PHPUnit_Framework_Assert {
string $filename,
string $message = '',
): void;
public function assertFileIsReadable(
string $file,
string $message = '',
): void;
public function assertFileIsWritable(
string $file,
string $message = '',
): void;
public function assertFileNotEquals(
string $expected,
string $actual,
......@@ -222,6 +254,14 @@ abstract class PHPUnit_Framework_Assert {
string $filename,
string $message = '',
): void;
public function assertFileNotIsReadable(
string $file,
string $message = '',
): void;
public function assertFileNotIsWritable(
string $file,
string $message = '',
): void;
public function assertFinite(mixed $action, string $message = ''): void;
public function assertGreaterThan(
mixed $expected,
......@@ -244,6 +284,14 @@ abstract class PHPUnit_Framework_Assert {
mixed $actual,
string $message = '',
): void;
public function assertIsReadable(
string $filename,
string $message = '',
): void;
public function assertIsWritable(
string $filename,
string $message = '',
): void;
public function assertJson(string $actual, string $message = ''): void;
public function assertJsonFileEqualsJsonFile(
string $expected,
......@@ -326,6 +374,14 @@ abstract class PHPUnit_Framework_Assert {
mixed $actual,
string $message = '',
): void;
public function assertNotIsReadable(
string $filename,
string $message = '',
): void;
public function assertNotIsWritable(
string $filename,
string $message = '',
): void;
public function assertNotNull(mixed $actual, string $msg = ''): void;
public function assertNotRegExp(
string $pattern,
......@@ -504,6 +560,8 @@ abstract class PHPUnit_Framework_Assert {
public function countOf<T>(
int $count,
): PHPUnit_Framework_Constraint_Count<T>;
public function directoryExists(
): PHPUnit_Framework_Constraint_DirectoryExists;
public function equalTo(
mixed $value,
float $delta = 0.0,
......@@ -531,8 +589,10 @@ abstract class PHPUnit_Framework_Assert {
public function isJson(): PHPUnit_Framework_Constraint_IsJson;
public function isNan(): PHPUnit_Framework_Constraint_IsNan;
public function isNull(): PHPUnit_Framework_Constraint_IsNull;
public function isReadable(): PHPUnit_Framework_Constraint_IsReadable;
public function isTrue(): PHPUnit_Framework_Constraint_IsTrue;
public function isType(string $type): PHPUnit_Framework_Constraint_IsType;
public function isWritable(): PHPUnit_Framework_Constraint_IsWritable;
public function lessThan($value): PHPUnit_Framework_Constraint_LessThan;
public function lessThanOrEqual(
$value,
......
<?hh // decl
class PHPUnit_Framework_Constraint_DirectoryExists
extends PHPUnit_Framework_Constraint<string> {
public function toString(): string;
}
<?hh // decl
class PHPUnit_Framework_Constraint_IsReadable
extends PHPUnit_Framework_Constraint<string> {
public function toString(): string;
}
<?hh // decl
class PHPUnit_Framework_Constraint_IsWritable
extends PHPUnit_Framework_Constraint<string> {
public function toString(): string;
}
......@@ -33,6 +33,7 @@ abstract class PHPUnit_Framework_TestCase extends PHPUnit_Framework_Assert
'method' => array<string, array<string>>,
);
protected function getDataSetAsString(bool $includeData = true): string;
protected function getProvidedData(): array;
public function getExpectedException(): ?string;
public function getGroups(): array;
public function getName(bool $withDataSet = true): string;
......
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