-
-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3309 from mhsdesign/task/deprecateGetAccessibleMock
TASK: Deprecate BaseTestCase functionalities
- Loading branch information
Showing
2 changed files
with
44 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
|
||
namespace Neos\Flow\Tests; | ||
|
||
use Neos\Utility\ObjectAccess; | ||
|
||
/** | ||
* This interface defines the methods provided by {@see BaseTestCase::getAccessibleMock()} | ||
* Do not implement this interface in own classes. | ||
* | ||
* It allows for calling even protected methods and access of protected properties. | ||
* | ||
* Note that this interface is not actually implemented by the accessible proxy, but only provides IDE support. | ||
* | ||
* @deprecated you should not use this for testing. As it will couple the tests to highly to the internal implementation | ||
* and makes refactorings without rewriting major tests impossible. | ||
*/ | ||
interface AccessibleProxyInterface | ||
{ | ||
/** @deprecated */ | ||
public function _call(string $methodName, mixed ...$arguments): mixed; | ||
/** @deprecated */ | ||
public function _callRef(string $methodName, mixed ...$argumentsPassedByReference): mixed; | ||
/** @deprecated please specify properties via constructor call the injector manually or use - if you must - {@see ObjectAccess::setProperty()} instead. */ | ||
public function _set(string $propertyName, mixed $value): void; | ||
/** @deprecated */ | ||
public function _setRef(string $propertyName, mixed &$value): void; | ||
/** @deprecated please use - if you must - {@see ObjectAccess::setProperty()} instead. */ | ||
public function _get(string $propertyName): mixed; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters