Commit d006010b authored by Simon Welsh's avatar Simon Welsh

Finish moving everything into namespaces

parent 060c6593
Pipeline #188 failed with stages
in 2 minutes and 19 seconds
<?hh // decl
interface PHPUnit_Exception {}
namespace PHPUnit;
interface Exception {}
This diff is collapsed.
<?hh // decl
class PHPUnit_Framework_AssertionFailedError
extends PHPUnit_Framework_Exception
implements PHPUnit_Framework_SelfDescribing {
namespace PHPUnit\Framework;
class AssertionFailedError extends Exception implements SelfDescribing {
public function toString(): string;
}
<?hh // decl
abstract class PHPUnit_Framework_BaseTestListener
implements PHPUnit_Framework_TestListener {
public function addError(PHPUnit_Framework_Test $test, Exception $e, $time);
public function addWarning(
PHPUnit_Framework_Test $test,
PHPUnit_Framework_Warning $e,
$time,
);
public function addFailure(
PHPUnit_Framework_Test $test,
PHPUnit_Framework_AssertionFailedError $e,
$time,
);
public function addIncompleteTest(
PHPUnit_Framework_Test $test,
Exception $e,
$time,
);
public function addRiskyTest(
PHPUnit_Framework_Test $test,
Exception $e,
$time,
);
public function addSkippedTest(
PHPUnit_Framework_Test $test,
Exception $e,
$time,
);
public function startTestSuite(PHPUnit_Framework_TestSuite $suite);
public function endTestSuite(PHPUnit_Framework_TestSuite $suite);
public function startTest(PHPUnit_Framework_Test $test);
public function endTest(PHPUnit_Framework_Test $test, $time);
namespace PHPUnit\Framework;
abstract class BaseTestListener implements TestListener {
public function addError(Test $test, \Exception $e, $time);
public function addWarning(Test $test, Warning $e, $time);
public function addFailure(Test $test, AssertionFailedError $e, $time);
public function addIncompleteTest(Test $test, \Exception $e, $time);
public function addRiskyTest(Test $test, \Exception $e, $time);
public function addSkippedTest(Test $test, \Exception $e, $time);
public function startTestSuite(TestSuite $suite);
public function endTestSuite(TestSuite $suite);
public function startTest(Test $test);
public function endTest(Test $test, $time);
}
<?hh // decl
class PHPUnit_Framework_CodeCoverageException
extends PHPUnit_Framework_Exception {}
namespace PHPUnit\Framework;
class CodeCoverageException extends Exception {}
<?hh // decl
class PHPUnit_Framework_Constraint_And<T>
extends PHPUnit_Framework_Constraint<T> {
protected ?PHPUnit_Framework_Constraint<T> $lastConstraint;
public function setConstraints(
protected array<PHPUnit_Framework_Constraint<T>> $constraints,
): void;
public function toString(): string;
}
<?hh // decl
class PHPUnit_Framework_Constraint_ArrayHasKey
extends PHPUnit_Framework_Constraint<array> {
namespace PHPUnit\Framework\Constraint;
class ArrayHasKey extends Constraint<array> {
public function __construct(protected arraykey $key);
public function toString(): string;
}
<?hh // decl
class PHPUnit_Framework_Constraint_ArraySubset
extends PHPUnit_Framework_Constraint<array> {
namespace PHPUnit\Framework\Constraint;
class ArraySubset extends Constraint<array> {
public function __construct(
protected array $subset,
protected bool $strict = false,
......
<?hh // decl
class PHPUnit_Framework_Constraint_Attribute<T>
extends PHPUnit_Framework_Constraint_Composite<T> {
namespace PHPUnit\Framework\Constraint;
class Attribute<T> extends Composite<T> {
public function __construct(
PHPUnit_Framework_Constraint<T> $constraint,
Constraint<T> $constraint,
protected string $attributeName,
);
......
<?hh // decl
class PHPUnit_Framework_Constraint_Callback<T>
extends PHPUnit_Framework_Constraint<T> {
namespace PHPUnit\Framework\Constraint;
class Callback<T> extends Constraint<T> {
public function __construct(private (function(T): bool) $callback);
public function toString(): string;
......
<?hh // decl
class PHPUnit_Framework_Constraint_ClassHasAttribute<T>
extends PHPUnit_Framework_Constraint<classname<T>> {
namespace PHPUnit\Framework\Constraint;
class ClassHasAttribute<T> extends Constraint<classname<T>> {
public function __construct(protected string $attributeName);
public function toString(): string;
......
<?hh // decl
class PHPUnit_Framework_Constraint_ClassHasStaticAttribute<T>
extends PHPUnit_Framework_Constraint_ClassHasAttribute<T> {}
namespace PHPUnit\Framework\Constraint;
class ClassHasStaticAttribute<T> extends ClassHasAttribute<T> {}
<?hh // decl
abstract class PHPUnit_Framework_Constraint_Composite<T>
extends PHPUnit_Framework_Constraint<T> {
public function __construct(
protected PHPUnit_Framework_Constraint<T> $innerConstraint,
);
namespace PHPUnit\Framework\Constraint;
abstract class Composite<T> extends Constraint<T> {
public function __construct(protected Constraint<T> $innerConstraint);
}
<?hh // decl
abstract class PHPUnit_Framework_Constraint<T>
implements Countable, PHPUnit_Framework_SelfDescribing {
namespace PHPUnit\Framework\Constraint;
abstract class Constraint<T>
implements \Countable, \PHPUnit\Framework\SelfDescribing {
protected /*SebastianBergmann\Exporter\Exporter */ $exporter;
public function __construct();
......
<?hh // decl
class PHPUnit_Framework_Constraint_Count<T>
extends PHPUnit_Framework_Constraint<T> {
namespace PHPUnit\Framework\Constraint;
class Count<T> extends Constraint<T> {
public function __construct(protected int $expected);
protected function getCountOf(T $other): ?int;
protected function getCountOfGenerator(Generator $generator): int;
protected function getCountOfGenerator(\Generator $generator): int;
public function toString(): string;
}
<?hh // decl
class PHPUnit_Framework_Constraint_DirectoryExists
extends PHPUnit_Framework_Constraint<string> {
namespace PHPUnit\Framework\Constraint;
class DirectoryExists extends Constraint<string> {
public function toString(): string;
}
<?hh // decl
class PHPUnit_Framework_Constraint_Exception
extends PHPUnit_Framework_Constraint<Exception> {
namespace PHPUnit\Framework\Constraint;
class Exception extends Constraint<Exception> {
public function __construct(protected classname<Exception> $className);
public function toString(): string;
......
<?hh // decl
class PHPUnit_Framework_Constraint_ExceptionCode
extends PHPUnit_Framework_Constraint<Exception> {
namespace PHPUnit\Framework\Constraint;
class ExceptionCode extends Constraint<Exception> {
public function __construct(protected int $expectedCode);
public function toString(): string;
......
<?hh // decl
class PHPUnit_Framework_Constraint_ExceptionMessage
extends PHPUnit_Framework_Constraint<Exception> {
namespace PHPUnit\Framework\Constraint;
class ExceptionMessage extends Constraint<Exception> {
public function __construct(protected string $expectedMessage);
public function toString(): string;
......
<?hh // decl
class PHPUnit_Framework_Constraint_ExceptionMessageRegExp
extends PHPUnit_Framework_Constraint<Exception> {
namespace PHPUnit\Framework\Constraint;
class ExceptionMessageRegExp extends Constraint<Exception> {
public function __construct(protected string $expectedMessageRegExp);
public function toString(): string;
......
<?hh // decl
class PHPUnit_Framework_Constraint_FileExists
extends PHPUnit_Framework_Constraint<string> {
namespace PHPUnit\Framework\Constraint;
class FileExists extends Constraint<string> {
public function toString(): string;
}
<?hh // decl
class PHPUnit_Framework_Constraint_GreaterThan
extends PHPUnit_Framework_Constraint<num> {
namespace PHPUnit\Framework\Constraint;
class GreaterThan extends Constraint<num> {
public function __construct(protected num $value);
public function toString(): string;
}
<?hh // decl
class PHPUnit_Framework_Constraint_IsAnything
extends PHPUnit_Framework_Constraint<mixed> {
namespace PHPUnit\Framework\Constraint;
class IsAnything extends Constraint<mixed> {
public function toString(): string;
}
<?hh // decl
class PHPUnit_Framework_Constraint_IsEmpty
extends PHPUnit_Framework_Constraint<mixed> {
namespace PHPUnit\Framework\Constraint;
class IsEmpty extends Constraint<mixed> {
public function toString(): string;
}
<?hh // decl
class PHPUnit_Framework_Constraint_IsEqual
extends PHPUnit_Framework_Constraint<mixed> {
namespace PHPUnit\Framework\Constraint;
class IsEqual extends Constraint<mixed> {
public function __construct(
protected mixed $value,
protected float $delta = 0.0,
......
<?hh // decl
class PHPUnit_Framework_Constraint_IsFalse
extends PHPUnit_Framework_Constraint<bool> {
namespace PHPUnit\Framework\Constraint;
class IsFalse extends Constraint<bool> {
public function toString(): string;
}
<?hh // decl
class PHPUnit_Framework_Constraint_IsFinite
extends PHPUnit_Framework_Constraint<mixed> {
namespace PHPUnit\Framework\Constraint;
class IsFinite extends Constraint<mixed> {
public function toString(): string;
}
<?hh // decl
class PHPUnit_Framework_Constraint_IsIdentical
extends PHPUnit_Framework_Constraint<mixed> {
namespace PHPUnit\Framework\Constraint;
class IsIdentical extends Constraint<mixed> {
const float EPSILON = 0.0000000001;
public function __construct(protected mixed $value);
......
<?hh // decl
class PHPUnit_Framework_Constraint_IsInfinite
extends PHPUnit_Framework_Constraint<mixed> {
namespace PHPUnit\Framework\Constraint;
class IsInfinite extends Constraint<mixed> {
public function toString(): string;
}
<?hh // decl
class PHPUnit_Framework_Constraint_IsInstanceOf<T>
extends PHPUnit_Framework_Constraint<mixed> {
namespace PHPUnit\Framework\Constraint;
class IsInstanceOf<T> extends Constraint<mixed> {
public function __construct(protected classname<T> $className);
public function toString(): string;
}
<?hh // decl
class PHPUnit_Framework_Constraint_IsJson
extends PHPUnit_Framework_Constraint<string> {
namespace PHPUnit\Framework\Constraint;
class IsJson extends Constraint<string> {
public function toString(): string;
}
<?hh // decl
class PHPUnit_Framework_Constraint_IsNan
extends PHPUnit_Framework_Constraint<mixed> {
namespace PHPUnit\Framework\Constraint;
class IsNan extends Constraint<mixed> {
public function toString(): string;
}
<?hh // decl
class PHPUnit_Framework_Constraint_IsNull
extends PHPUnit_Framework_Constraint<mixed> {
namespace PHPUnit\Framework\Constraint;
class IsNull extends Constraint<mixed> {
public function toString(): string;
}
<?hh // decl
class PHPUnit_Framework_Constraint_IsReadable
extends PHPUnit_Framework_Constraint<string> {
namespace PHPUnit\Framework\Constraint;
class IsReadable extends Constraint<string> {
public function toString(): string;
}
<?hh // decl
class PHPUnit_Framework_Constraint_IsTrue
extends PHPUnit_Framework_Constraint<bool> {
namespace PHPUnit\Framework\Constraint;
class IsTrue extends Constraint<bool> {
public function toString(): string;
}
<?hh // decl
class PHPUnit_Framework_Constraint_IsType
extends PHPUnit_Framework_Constraint<mixed> {
namespace PHPUnit\Framework\Constraint;
class IsType extends Constraint<mixed> {
const string TYPE_ARRAY = 'array';
const string TYPE_BOOL = 'bool';
const string TYPE_FLOAT = 'float';
......@@ -14,6 +15,8 @@ class PHPUnit_Framework_Constraint_IsType
const string TYPE_SCALAR = 'scalar';
const string TYPE_CALLABLE = 'callable';
protected array<string, bool> $types = [];
public function __construct(protected string $type);
public function toString(): string;
}
<?hh // decl
class PHPUnit_Framework_Constraint_IsWritable
extends PHPUnit_Framework_Constraint<string> {
namespace PHPUnit\Framework\Constraint;
class IsWritable extends Constraint<string> {
public function toString(): string;
}
<?hh // decl
class PHPUnit_Framework_Constraint_JsonMatches
extends PHPUnit_Framework_Constraint<string> {
namespace PHPUnit\Framework\Constraint;
class JsonMatches extends Constraint<string> {
public function __construct(protected string $value);
public function toString(): string;
}
<?hh // decl
class PHPUnit_Framework_Constraint_JsonMatches_ErrorMessageProvider {
namespace PHPUnit\Framework\Constraint;
class JsonMatchesErrorMessageProvider {
public static function determineJsonError(
int $error,
string $prefix = '',
......
<?hh // decl
class PHPUnit_Framework_Constraint_LessThan
extends PHPUnit_Framework_Constraint<num> {
namespace PHPUnit\Framework\Constraint;
class LessThan extends Constraint<num> {
public function __construct(protected num $value);
public function toString(): string;
}
<?hh // decl
class PHPUnit_Framework_Constraint_Or<T>
extends PHPUnit_Framework_Constraint<T> {
protected array<PHPUnit_Framework_Constraint<T>> $constraints = [];
namespace PHPUnit\Framework\Constraint;
class LogicalAnd<T> extends Constraint<T> {
protected ?Constraint<T> $lastConstraint;
public function setConstraints(
array<PHPUnit_Framework_Constraint<T>> $constraints,
protected array<Constraint<T>> $constraints,
): void;
public function toString(): string;
......
<?hh // decl
class PHPUnit_Framework_Constraint_Not<T>
extends PHPUnit_Framework_Constraint<T> {
public function __construct(
protected PHPUnit_Framework_Constraint<T> $constraint,
);
namespace PHPUnit\Framework\Constraint;
class LogicalNot<T> extends Constraint<T> {
public function __construct(protected Constraint<T> $constraint);
public static function negate(string $string): string;
public function toString(): string;
......
<?hh // decl
namespace PHPUnit\Framework\Constraint;
class LogicalOr<T> extends Constraint<T> {
protected array<Constraint<T>> $constraints = [];
public function setConstraints(array<Constraint<T>> $constraints): void;
public function toString(): string;
}
<?hh // decl
namespace PHPUnit\Framework\Constraint;
class LogicalXor<T> extends Constraint<T> {
protected array<Constraint<T>> $constraints = [];
public function setConstraints(array<Constraint<T>> $constraints): void;
public function toString(): string;
}
<?hh // decl
class PHPUnit_Framework_Constraint_ObjectHasAttribute<T>
extends PHPUnit_Framework_Constraint_ClassHasAttribute<T> {}
namespace PHPUnit\Framework\Constraint;
class ObjectHasAttribute<T> extends ClassHasAttribute<T> {}
<?hh // decl
class PHPUnit_Framework_Constraint_PCREMatch
extends PHPUnit_Framework_Constraint<string> {
namespace PHPUnit\Framework\Constraint;
class RegularExpression extends Constraint<string> {
public function __construct(protected string $pattern);
public function toString(): string;
......
<?hh // decl
class PHPUnit_Framework_Constraint_SameSize<T>
extends PHPUnit_Framework_Constraint_Count<T> {
namespace PHPUnit\Framework\Constraint;
class SameSize<T> extends Count<T> {
public function __construct($expected);
}
<?hh // decl
class PHPUnit_Framework_Constraint_StringContains
extends PHPUnit_Framework_Constraint<string> {
namespace PHPUnit\Framework\Constraint;
class StringContains extends Constraint<string> {
public function __construct(
protected string $string,
protected bool $ignoreCase = false,
......
<?hh // decl
class PHPUnit_Framework_Constraint_StringEndsWith
extends PHPUnit_Framework_Constraint<string> {
namespace PHPUnit\Framework\Constraint;
class StringEndsWith extends Constraint<string> {
public function __construct(protected string $suffix);
public function toString(): string;
......
<?hh // decl
class PHPUnit_Framework_Constraint_StringMatches
extends PHPUnit_Framework_Constraint_PCREMatch {
namespace PHPUnit\Framework\Constraint;
class StringMatchesFormatDescription extends RegularExpression {
public function __construct(protected string $string);
protected function createPatternFromFormat(string $string): string;
......
<?hh // decl
class PHPUnit_Framework_Constraint_StringStartsWith
extends PHPUnit_Framework_Constraint<string> {
namespace PHPUnit\Framework\Constraint;
class StringStartsWith extends Constraint<string> {
public function __construct(protected string $prefix);
public function toString(): string;
......
<?hh // decl
class PHPUnit_Framework_Constraint_TraversableContains<T>
extends PHPUnit_Framework_Constraint<Traversable<T>> {
namespace PHPUnit\Framework\Constraint;
class TraversableContains<T> extends Constraint<Traversable<T>> {
public function __construct(
protected mixed $value,
protected bool $checkForObjectIdentity = true,
......
<?hh // decl
class PHPUnit_Framework_Constraint_TraversableContainsOnly<T>
extends PHPUnit_Framework_Constraint<Traversable<T>> {
namespace PHPUnit\Framework\Constraint;
class TraversableContainsOnly<T> extends Constraint<Traversable<T>> {
public function __construct(
protected string $type,
protected bool $isNativeType = true,
);
public function toString(): string;
}
<?hh // decl
class PHPUnit_Framework_Constraint_Xor<T>
extends PHPUnit_Framework_Constraint<T> {
protected array<PHPUnit_Framework_Constraint<T>> $constraints = [];
public function setConstraints(
array<PHPUnit_Framework_Constraint<T>> $constraints,
): void;
public function toString(): string;
}
<?hh // decl
class PHPUnit_Framework_CoveredCodeNotExecutedException
extends PHPUnit_Framework_RiskyTestError {}
namespace PHPUnit\Framework;
class CoveredCodeNotExecutedException extends RiskyTestError {}
<?hh // decl
class PHPUnit_Framework_Error_Deprecated extends PHPUnit_Framework_Error {
namespace PHPUnit\Framework\Error;
class Deprecated extends Error {
public static bool $enabled = true;
}
<?hh // decl
class PHPUnit_Framework_Error extends PHPUnit_Framework_Exception {
namespace PHPUnit\Framework\Error;
class Error extends \PHPUnit\Framework\Exception {
public function __construct(
string $message,
int $code,
public string $file,
public int $line,
?Exception $previous = null,
?\Exception $previous = null,
);
}
<?hh // decl
class PHPUnit_Framework_Error_Notice extends PHPUnit_Framework_Error {
namespace PHPUnit\Framework\Error;
class Notice extends Error {