Changeset 36785
- Timestamp:
- 02/29/2016 09:55:41 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/includes/helpers.php
r33425 r36785 175 175 public function test_setExpectedDeprecated() { 176 176 $this->setExpectedDeprecated( 'Tests_TestHelpers::mock_deprecated' ); 177 $this-> mock_deprecated();177 $this->assertTrue( $this->mock_deprecated() ); 178 178 } 179 179 … … 183 183 public function test_setExpectedIncorrectUsage() { 184 184 $this->setExpectedIncorrectUsage( 'Tests_TestHelpers::mock_incorrect_usage' ); 185 $this-> mock_incorrect_usage();185 $this->assertTrue( $this->mock_incorrect_usage() ); 186 186 } 187 187 … … 198 198 protected function mock_deprecated() { 199 199 _deprecated_function( __METHOD__, '2.5' ); 200 return true; 200 201 } 201 202 202 203 protected function mock_incorrect_usage() { 203 204 _doing_it_wrong( __METHOD__, __( 'Incorrect usage test' ), '2.5' ); 205 return true; 204 206 } 205 207 }
Note: See TracChangeset
for help on using the changeset viewer.