Skip to content

Commit 0040ded

Browse files
committed
Build/Test Tools: Add @phpstan-assert on assertIXRError and assertNotIXRError.
See #64898. git-svn-id: https://develop.svn.wordpress.org/trunk@63005 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 8c3c976 commit 0040ded

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎tests/phpunit/includes/abstract-testcase.php‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -898,6 +898,8 @@ public function assertNotWPError( $actual, $message = '' ) {
898898
*
899899
* @param mixed $actual The value to check.
900900
* @param string $message Optional. Message to display when the assertion fails.
901+
*
902+
* @phpstan-assert IXR_Error $actual
901903
*/
902904
public function assertIXRError( $actual, $message = '' ) {
903905
$this->assertInstanceOf( 'IXR_Error', $actual, $message );
@@ -908,6 +910,8 @@ public function assertIXRError( $actual, $message = '' ) {
908910
*
909911
* @param mixed $actual The value to check.
910912
* @param string $message Optional. Message to display when the assertion fails.
913+
*
914+
* @phpstan-assert !IXR_Error $actual
911915
*/
912916
public function assertNotIXRError( $actual, $message = '' ) {
913917
if ( $actual instanceof IXR_Error ) {

0 commit comments

Comments
 (0)