Browse Source

Remove deprecations

euromark 12 years ago
parent
commit
deae1f38b1
2 changed files with 1 additions and 37 deletions
  1. 0 36
      src/TestSuite/TestCase.php
  2. 1 1
      tests/TestCase/Controller/Component/Acl/PhpAclTest.php

+ 0 - 36
src/TestSuite/TestCase.php

@@ -482,42 +482,6 @@ abstract class TestCase extends \PHPUnit_Framework_TestCase {
 // @codingStandardsIgnoreStart
 
 /**
- * assert no errors
- *
- * @deprecated This is a compatiblity wrapper for 1.x. It will be removed in 3.0
- * @return void
- */
-	protected function assertNoErrors() {
-	}
-
-/**
- * Compatibility wrapper function for setExpectedException
- *
- * @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 = '') {
-		if (!$expected) {
-			$expected = 'Exception';
-		}
-		$this->setExpectedException($expected, $message);
-	}
-
-/**
- * Compatibility wrapper function for setExpectedException
- *
- * @param mixed $name 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 = '') {
-		$this->setExpectedException($name, $message);
-	}
-
-/**
  * Compatibility function to test if value is between an acceptable range
  *
  * @param mixed $result

+ 1 - 1
tests/TestCase/Controller/Component/Acl/PhpAclTest.php

@@ -348,7 +348,7 @@ class PhpAclTest extends TestCase {
 			),
 		);
 
-		$this->expectError('PHPUnit_Framework_Error', 'cycle detected' /* ... */);
+		$this->setExpectedException('PHPUnit_Framework_Error', 'cycle detected' /* ... */);
 		$this->PhpAcl->build($config);
 	}