Deprecated
Table of Contents
DateIntervalFilter.php
| Line | Element | Reason | 
|---|---|---|
| 13 | DateIntervalFilter | Will be removed in 2.0. This filter will no longer be necessary in PHP 7.1+. | 
SplDoublyLinkedList.php
| Line | Element | Reason | 
|---|---|---|
| 8 | SplDoublyLinkedList | Use {@see} instead. | 
Param.php
| Line | Element | Reason | 
|---|---|---|
| 69 | Param::setTypeHint() | Use setType() instead | 
Comment.php
| Line | Element | Reason | 
|---|---|---|
| 107 | Comment::getLine() | Use getStartLine() instead | 
| 118 | Comment::getFilePos() | Use getStartFilePos() instead | 
| 129 | Comment::getTokenPos() | Use getStartTokenPos() instead | 
StaticMethod.php
| Line | Element | Reason | 
|---|---|---|
| 19 | StaticMethod | This contract is totally covered by Tag contract. Every class using StaticMethod also use Tag | 
ArgumentNode.php
| Line | Element | Reason | 
|---|---|---|
| 99 | ArgumentNode::getTypeHint() | use getArgumentTypeNode instead | 
| 110 | ArgumentNode::setTypeHint() | use setArgumentTypeNode instead | 
| 119 | ArgumentNode::isNullable() | use getArgumentTypeNode instead | 
| 128 | ArgumentNode::setAsNullable() | use getArgumentTypeNode instead | 
MethodNode.php
| Line | Element | Reason | 
|---|---|---|
| 112 | MethodNode::hasReturnType() | use getReturnTypeNode instead | 
| 126 | MethodNode::setReturnType() | use setReturnTypeNode instead | 
| 135 | MethodNode::setNullableReturnType() | use setReturnTypeNode instead | 
| 149 | MethodNode::getReturnType() | use getReturnTypeNode instead | 
| 168 | MethodNode::hasNullableReturnType() | use getReturnTypeNode instead | 
TypeHintReference.php
| Line | Element | Reason | 
|---|---|---|
| 11 | TypeHintReference | in favour of Node\TypeNodeAbstract | 
MethodProphecy.php
| Line | Element | Reason | 
|---|---|---|
| 445 | MethodProphecy::shouldNotBeenCalled() | 
Functions.php
| Line | Element | Reason | 
|---|---|---|
| 778 | assertNotIsReadable() | https://github.com/sebastianbergmann/phpunit/issues/4062 | 
| 833 | assertNotIsWritable() | https://github.com/sebastianbergmann/phpunit/issues/4065 | 
| 888 | assertDirectoryNotExists() | https://github.com/sebastianbergmann/phpunit/issues/4068 | 
| 943 | assertDirectoryNotIsReadable() | https://github.com/sebastianbergmann/phpunit/issues/4071 | 
| 998 | assertDirectoryNotIsWritable() | https://github.com/sebastianbergmann/phpunit/issues/4074 | 
| 1053 | assertFileNotExists() | https://github.com/sebastianbergmann/phpunit/issues/4077 | 
| 1108 | assertFileNotIsReadable() | https://github.com/sebastianbergmann/phpunit/issues/4080 | 
| 1163 | assertFileNotIsWritable() | https://github.com/sebastianbergmann/phpunit/issues/4083 | 
| 2020 | assertRegExp() | https://github.com/sebastianbergmann/phpunit/issues/4086 | 
| 2058 | assertNotRegExp() | https://github.com/sebastianbergmann/phpunit/issues/4089 | 
| 2441 | assertEqualXMLStructure() | https://github.com/sebastianbergmann/phpunit/issues/4091 | 
Assert.php
| Line | Element | Reason | 
|---|---|---|
| 762 | Assert::assertNotIsReadable() | https://github.com/sebastianbergmann/phpunit/issues/4062 | 
| 801 | Assert::assertNotIsWritable() | https://github.com/sebastianbergmann/phpunit/issues/4065 | 
| 840 | Assert::assertDirectoryNotExists() | https://github.com/sebastianbergmann/phpunit/issues/4068 | 
| 881 | Assert::assertDirectoryNotIsReadable() | https://github.com/sebastianbergmann/phpunit/issues/4071 | 
| 923 | Assert::assertDirectoryNotIsWritable() | https://github.com/sebastianbergmann/phpunit/issues/4074 | 
| 963 | Assert::assertFileNotExists() | https://github.com/sebastianbergmann/phpunit/issues/4077 | 
| 1004 | Assert::assertFileNotIsReadable() | https://github.com/sebastianbergmann/phpunit/issues/4080 | 
| 1046 | Assert::assertFileNotIsWritable() | https://github.com/sebastianbergmann/phpunit/issues/4083 | 
| 1838 | Assert::assertRegExp() | https://github.com/sebastianbergmann/phpunit/issues/4086 | 
| 1872 | Assert::assertNotRegExp() | https://github.com/sebastianbergmann/phpunit/issues/4089 | 
| 2265 | Assert::assertEqualXMLStructure() | https://github.com/sebastianbergmann/phpunit/issues/4091 | 
MockBuilder.php
| Line | Element | Reason | 
|---|---|---|
| 209 | MockBuilder::setMethods() | https://github.com/sebastianbergmann/phpunit/pull/3687 | 
TestCase.php
| Line | Element | Reason | 
|---|---|---|
| 421 | TestCase::at() | https://github.com/sebastianbergmann/phpunit/issues/4297 | 
| 138 | TestCase::$backupGlobalsBlacklist | Use $backupGlobalsExcludeList instead | 
| 155 | TestCase::$backupStaticAttributesBlacklist | Use $backupStaticAttributesExcludeList instead | 
TestListener.php
| Line | Element | Reason | 
|---|---|---|
| 18 | TestListener | Use the `TestHook` interfaces instead | 
| 25 | TestListener::addError() | Use `AfterTestErrorHook::executeAfterTestError` instead | 
| 32 | TestListener::addWarning() | Use `AfterTestWarningHook::executeAfterTestWarning` instead | 
| 39 | TestListener::addFailure() | Use `AfterTestFailureHook::executeAfterTestFailure` instead | 
| 46 | TestListener::addIncompleteTest() | Use `AfterIncompleteTestHook::executeAfterIncompleteTest` instead | 
| 53 | TestListener::addRiskyTest() | Use `AfterRiskyTestHook::executeAfterRiskyTest` instead | 
| 60 | TestListener::addSkippedTest() | Use `AfterSkippedTestHook::executeAfterSkippedTest` instead | 
| 77 | TestListener::startTest() | Use `BeforeTestHook::executeBeforeTest` instead | 
| 84 | TestListener::endTest() | Use `AfterTestHook::executeAfterTest` instead | 
TestListenerDefaultImplementation.php
| Line | Element | Reason | 
|---|---|---|
| 18 | TestListenerDefaultImplementation | The `TestListener` interface is deprecated | 
TestSuiteLoader.php
| Line | Element | Reason | 
|---|---|---|
| 19 | TestSuiteLoader | see https://github.com/sebastianbergmann/phpunit/issues/4039 | 
Command.php
| Line | Element | Reason | 
|---|---|---|
| 423 | Command::handleLoader() | see https://github.com/sebastianbergmann/phpunit/issues/4039 | 
Blacklist.php
| Line | Element | Reason | 
|---|---|---|
| 17 | Blacklist | Use ExcludeList instead | 
NullType.php
| Line | Element | Reason | 
|---|---|---|
| 34 | NullType::getReturnTypeDeclaration() | 
Type.php
| Line | Element | Reason | 
|---|---|---|
| 84 | Type::getReturnTypeDeclaration() | 
TypeName.php
| Line | Element | Reason | 
|---|---|---|
| 84 | TypeName::getNamespaceName() | Use namespaceName() instead | 
| 94 | TypeName::getSimpleName() | Use simpleName() instead | 
| 104 | TypeName::getQualifiedName() | Use qualifiedName() instead | 
UnionType.php
| Line | Element | Reason | 
|---|---|---|
| 55 | UnionType::getReturnTypeDeclaration() | 
UnknownType.php
| Line | Element | Reason | 
|---|---|---|
| 34 | UnknownType::getReturnTypeDeclaration() | 
Assert.php
| Line | Element | Reason | 
|---|---|---|
| 301 | Assert::isTraversable() | use "isIterable" or "isInstanceOf" instead | 
Mixin.php
| Line | Element | Reason | 
|---|---|---|
| 316 | Mixin::nullOrIsTraversable() | use "isIterable" or "isInstanceOf" instead | 
| 329 | Mixin::allIsTraversable() | use "isIterable" or "isInstanceOf" instead |