Skip to content

Commit

Permalink
Keep the former methods around.
Browse files Browse the repository at this point in the history
  • Loading branch information
euromark committed Aug 9, 2014
1 parent ddcb3ce commit 4da6fbd
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions src/TestSuite/TestCase.php
Expand Up @@ -265,6 +265,19 @@ public function assertTextNotContains($needle, $haystack, $message = '', $ignore
$this->assertNotContains($needle, $haystack, $message, $ignoreCase);
}

/**
* Asserts HTML tags.
*
* @param array $expected An array, see above
* @param string $string An HTML/XHTML/XML string
* @param string $fullDebug Whether or not more verbose output should be used.
* @return void
* @deprecated 3.0. Use assertHtml() instead.
*/
public function assertTags($string, $expected, $fullDebug = false) {
static::assertHtml($expected, $string, $fullDebug);
}

/**
* Asserts HTML tags.
*
Expand Down Expand Up @@ -482,6 +495,20 @@ protected function _normalizePath($path) {

// @codingStandardsIgnoreStart

/**
* Compatibility function to test if a value is between an acceptable range.
*
* @param float $result
* @param float $expected
* @param float $margin the rage of acceptation
* @param string $message the text to display if the assertion is not correct
* @return void
* @deprecated 3.0. Use assertWithinRange() instead.
*/
protected static function assertWithinMargin($result, $expected, $margin, $message = '') {
static::assertWithinRange($expected, $result, $margin, $message);
}

/**
* Compatibility function to test if a value is between an acceptable range.
*
Expand Down

0 comments on commit 4da6fbd

Please sign in to comment.