Changeset 39174 for trunk/tests/phpunit/tests/http/base.php
- Timestamp:
- 11/09/2016 12:01:42 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/http/base.php
r38757 r39174 132 132 // 10 > 5 133 133 $res = wp_remote_request($this->redirection_script . '?rt=' . 10, array('redirection' => 5) ); 134 $this->assert True( is_wp_error($res), print_r($res, true));134 $this->assertWPError( $res ); 135 135 } 136 136 … … 138 138 // 6 > 5 (close edgecase) 139 139 $res = wp_remote_request($this->redirection_script . '?rt=' . 6, array('redirection' => 5) ); 140 $this->assert True( is_wp_error($res));140 $this->assertWPError( $res ); 141 141 } 142 142 … … 388 388 389 389 $res = wp_remote_get( 'https://wordpress.org/' ); 390 $this->assert True( ! is_wp_error( $res ), print_r( $res, true ));390 $this->assertNotWPError( $res ); 391 391 } 392 392
Note: See TracChangeset
for help on using the changeset viewer.