Permalink
Browse files

Mark compatibility shims as deprecated.

Fixes #2845
  • Loading branch information...
1 parent 4f42400 commit 070b165527433a78d1c2ce3e6fab5d6a4f60d2d7 @markstory markstory committed Feb 17, 2014
Showing with 13 additions and 0 deletions.
  1. +13 −0 lib/Cake/TestSuite/CakeTestCase.php
@@ -531,6 +531,7 @@ protected function _arrayPermute($items, $perms = array()) {
* @param mixed $result
* @param mixed $expected
* @param string $message the text to display if the assertion is not correct
+ * @deprecated This is a compatiblity wrapper for 1.x. It will be removed in 3.0
* @return void
*/
protected static function assertEqual($result, $expected, $message = '') {
@@ -543,6 +544,7 @@ protected static function assertEqual($result, $expected, $message = '') {
* @param mixed $result
* @param mixed $expected
* @param string $message the text to display if the assertion is not correct
+ * @deprecated This is a compatiblity wrapper for 1.x. It will be removed in 3.0
* @return void
*/
protected static function assertNotEqual($result, $expected, $message = '') {
@@ -555,6 +557,7 @@ protected static function assertNotEqual($result, $expected, $message = '') {
* @param mixed $pattern a regular expression
* @param string $string the text to be matched
* @param string $message the text to display if the assertion is not correct
+ * @deprecated This is a compatiblity wrapper for 1.x. It will be removed in 3.0
* @return void
*/
protected static function assertPattern($pattern, $string, $message = '') {
@@ -567,6 +570,7 @@ protected static function assertPattern($pattern, $string, $message = '') {
* @param mixed $actual
* @param mixed $expected
* @param string $message the text to display if the assertion is not correct
+ * @deprecated This is a compatiblity wrapper for 1.x. It will be removed in 3.0
* @return void
*/
protected static function assertIdentical($actual, $expected, $message = '') {
@@ -579,6 +583,7 @@ protected static function assertIdentical($actual, $expected, $message = '') {
* @param mixed $actual
* @param mixed $expected
* @param string $message the text to display if the assertion is not correct
+ * @deprecated This is a compatiblity wrapper for 1.x. It will be removed in 3.0
* @return void
*/
protected static function assertNotIdentical($actual, $expected, $message = '') {
@@ -591,6 +596,7 @@ protected static function assertNotIdentical($actual, $expected, $message = '')
* @param mixed $pattern a regular expression
* @param string $string the text to be matched
* @param string $message the text to display if the assertion is not correct
+ * @deprecated This is a compatiblity wrapper for 1.x. It will be removed in 3.0
* @return void
*/
protected static function assertNoPattern($pattern, $string, $message = '') {
@@ -599,6 +605,9 @@ protected static function assertNoPattern($pattern, $string, $message = '') {
/**
* assert no errors
+ *
+ * @deprecated This is a compatiblity wrapper for 1.x. It will be removed in 3.0
+ * @return void
*/
protected function assertNoErrors() {
}
@@ -608,6 +617,7 @@ protected function assertNoErrors() {
*
* @param mixed $expected the name of the Exception or error
* @param string $message the text to display if the assertion is not correct
+ * @deprecated This is a compatiblity wrapper for 1.x. It will be removed in 3.0
* @return void
*/
protected function expectError($expected = false, $message = '') {
@@ -622,6 +632,7 @@ protected function expectError($expected = false, $message = '') {
*
* @param mixed $expected the name of the Exception
* @param string $message the text to display if the assertion is not correct
+ * @deprecated This is a compatiblity wrapper for 1.x. It will be removed in 3.0
* @return void
*/
protected function expectException($name = 'Exception', $message = '') {
@@ -634,6 +645,7 @@ protected function expectException($name = 'Exception', $message = '') {
* @param mixed $first
* @param mixed $second
* @param string $message the text to display if the assertion is not correct
+ * @deprecated This is a compatiblity wrapper for 1.x. It will be removed in 3.0
* @return void
*/
protected static function assertReference(&$first, &$second, $message = '') {
@@ -646,6 +658,7 @@ protected static function assertReference(&$first, &$second, $message = '') {
* @param string $object
* @param string $type
* @param string $message
+ * @deprecated This is a compatiblity wrapper for 1.x. It will be removed in 3.0
* @return void
*/
protected static function assertIsA($object, $type, $message = '') {

0 comments on commit 070b165

Please sign in to comment.