Codeception\TestCase\WPTestCase::setExpectedDeprecated PHP Метод

setExpectedDeprecated() публичный Метод

Declare an expected _deprecated_function() or _deprecated_argument() call from within a test.
С версии: 4.2.0
public setExpectedDeprecated ( string $deprecated )
$deprecated string Name of the function, method, class, or argument that is deprecated. Must match first parameter of the `_deprecated_function()` or `_deprecated_argument()` call.
    public function setExpectedDeprecated($deprecated)
    {
        array_push($this->expected_deprecated, $deprecated);
    }