diff --git a/lib/Cake/Test/Case/Core/ConfigureTest.php b/lib/Cake/Test/Case/Core/ConfigureTest.php index 8f79c5381..fdc8609e7 100644 --- a/lib/Cake/Test/Case/Core/ConfigureTest.php +++ b/lib/Cake/Test/Case/Core/ConfigureTest.php @@ -342,7 +342,7 @@ class ConfigureTest extends CakeTestCase { /** * test reader() throwing exceptions on missing interface. * - * @expectedException Exception + * @expectedException PHPUnit_Framework_Error * @return void */ public function testReaderExceptionOnIncorrectClass() { diff --git a/lib/Cake/Test/Case/Model/ModelTestBase.php b/lib/Cake/Test/Case/Model/ModelTestBase.php index 0f7109571..7124118a5 100644 --- a/lib/Cake/Test/Case/Model/ModelTestBase.php +++ b/lib/Cake/Test/Case/Model/ModelTestBase.php @@ -21,8 +21,6 @@ App::uses('Model', 'Model'); App::uses('AppModel', 'Model'); require_once dirname(__FILE__) . DS . 'models.php'; -PHP_CodeCoverage_Filter::getInstance()->addFileToBlacklist(__FILE__, 'DEFAULT'); - /** * ModelBaseTest * diff --git a/lib/Cake/Test/Case/Model/models.php b/lib/Cake/Test/Case/Model/models.php index d46a632cc..d747196a3 100644 --- a/lib/Cake/Test/Case/Model/models.php +++ b/lib/Cake/Test/Case/Model/models.php @@ -19,8 +19,6 @@ * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ -PHP_CodeCoverage_Filter::getInstance()->addFileToBlacklist(__FILE__, 'DEFAULT'); - /** * Test class * diff --git a/lib/Cake/Test/Fixture/AssertTagsTestCase.php b/lib/Cake/Test/Fixture/AssertTagsTestCase.php index 5052cc422..3ef251578 100644 --- a/lib/Cake/Test/Fixture/AssertTagsTestCase.php +++ b/lib/Cake/Test/Fixture/AssertTagsTestCase.php @@ -1,7 +1,4 @@ addFileToBlacklist(__FILE__, 'DEFAULT'); - /** * This class helpes in indirectly testing the functionaliteies of CakeTestCase::assertTags * @@ -118,4 +115,4 @@ class AssertTagsTestCase extends CakeTestCase { ); $this->assertTags($input, $pattern); } -} \ No newline at end of file +} diff --git a/lib/Cake/Test/Fixture/FixturizedTestCase.php b/lib/Cake/Test/Fixture/FixturizedTestCase.php index fc2436ac1..b34ad155f 100644 --- a/lib/Cake/Test/Fixture/FixturizedTestCase.php +++ b/lib/Cake/Test/Fixture/FixturizedTestCase.php @@ -1,7 +1,4 @@ addFileToBlacklist(__FILE__, 'DEFAULT'); - /** * This class helps in testing the life-cycle of fixtures inside a CakeTestCase * @@ -59,4 +56,4 @@ class FixturizedTestCase extends CakeTestCase { public function testThrowException() { throw new Exception(); } -} \ No newline at end of file +} diff --git a/lib/Cake/TestSuite/CakeTestCase.php b/lib/Cake/TestSuite/CakeTestCase.php index 0a5db7b55..5db4a00a2 100644 --- a/lib/Cake/TestSuite/CakeTestCase.php +++ b/lib/Cake/TestSuite/CakeTestCase.php @@ -16,9 +16,6 @@ * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ - -PHP_CodeCoverage_Filter::getInstance()->addFileToBlacklist(__FILE__, 'DEFAULT'); - App::uses('CakeFixtureManager', 'TestSuite/Fixture'); App::uses('CakeTestFixture', 'TestSuite/Fixture'); diff --git a/lib/Cake/TestSuite/CakeTestRunner.php b/lib/Cake/TestSuite/CakeTestRunner.php index d4dc0e14b..1aec77d7e 100644 --- a/lib/Cake/TestSuite/CakeTestRunner.php +++ b/lib/Cake/TestSuite/CakeTestRunner.php @@ -17,8 +17,6 @@ */ require_once 'PHPUnit/TextUI/TestRunner.php'; -PHP_CodeCoverage_Filter::getInstance()->addFileToBlacklist(__FILE__, 'DEFAULT'); - /** * A custom test runner for Cake's use of PHPUnit. * @@ -92,4 +90,4 @@ class CakeTestRunner extends PHPUnit_TextUI_TestRunner { } return new CakeFixtureManager(); } -} \ No newline at end of file +} diff --git a/lib/Cake/TestSuite/CakeTestSuite.php b/lib/Cake/TestSuite/CakeTestSuite.php index c21452271..ef8b068b2 100644 --- a/lib/Cake/TestSuite/CakeTestSuite.php +++ b/lib/Cake/TestSuite/CakeTestSuite.php @@ -16,8 +16,6 @@ * @since CakePHP(tm) v 2.0 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ -PHP_CodeCoverage_Filter::getInstance()->addFileToBlacklist(__FILE__, 'DEFAULT'); - App::uses('Folder', 'Utility'); class CakeTestSuite extends PHPUnit_Framework_TestSuite { diff --git a/lib/Cake/TestSuite/CakeTestSuiteCommand.php b/lib/Cake/TestSuite/CakeTestSuiteCommand.php index 25ec1df7d..cc463b72b 100644 --- a/lib/Cake/TestSuite/CakeTestSuiteCommand.php +++ b/lib/Cake/TestSuite/CakeTestSuiteCommand.php @@ -26,8 +26,6 @@ App::uses('CakeTestCase', 'TestSuite'); App::uses('ControllerTestCase', 'TestSuite'); App::uses('CakeTestModel', 'TestSuite/Fixture'); -PHP_CodeCoverage_Filter::getInstance()->addFileToBlacklist(__FILE__, 'DEFAULT'); - /** * Class to customize loading of test suites from CLI * @@ -70,8 +68,7 @@ class CakeTestSuiteCommand extends PHPUnit_TextUI_Command { } else { $suite = $runner->getTest( $this->arguments['test'], - $this->arguments['testFile'], - $this->arguments['syntaxCheck'] + $this->arguments['testFile'] ); } @@ -175,4 +172,4 @@ class CakeTestSuiteCommand extends PHPUnit_TextUI_Command { } return $this->arguments['printer'] = $object; } -} \ No newline at end of file +} diff --git a/lib/Cake/TestSuite/CakeTestSuiteDispatcher.php b/lib/Cake/TestSuite/CakeTestSuiteDispatcher.php index 5a5989edc..029486b2a 100644 --- a/lib/Cake/TestSuite/CakeTestSuiteDispatcher.php +++ b/lib/Cake/TestSuite/CakeTestSuiteDispatcher.php @@ -151,9 +151,6 @@ class CakeTestSuiteDispatcher { $found = include 'PHPUnit' . DS . 'Autoload.php'; } } - if ($found) { - PHP_CodeCoverage_Filter::getInstance()->addFileToBlacklist(__FILE__, 'DEFAULT'); - } return $found; } diff --git a/lib/Cake/TestSuite/ControllerTestCase.php b/lib/Cake/TestSuite/ControllerTestCase.php index a015b1728..c293e6acf 100644 --- a/lib/Cake/TestSuite/ControllerTestCase.php +++ b/lib/Cake/TestSuite/ControllerTestCase.php @@ -17,8 +17,6 @@ * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ -PHP_CodeCoverage_Filter::getInstance()->addFileToBlacklist(__FILE__, 'DEFAULT'); - App::uses('Dispatcher', 'Routing'); App::uses('CakeTestCase', 'TestSuite'); App::uses('Router', 'Routing'); diff --git a/lib/Cake/TestSuite/Coverage/BaseCoverageReport.php b/lib/Cake/TestSuite/Coverage/BaseCoverageReport.php index bf2da87ed..e12a06faa 100644 --- a/lib/Cake/TestSuite/Coverage/BaseCoverageReport.php +++ b/lib/Cake/TestSuite/Coverage/BaseCoverageReport.php @@ -17,9 +17,6 @@ * @since CakePHP(tm) v 2.0 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ - -PHP_CodeCoverage_Filter::getInstance()->addFileToBlacklist(__FILE__, 'DEFAULT'); - abstract class BaseCoverageReport { /** diff --git a/lib/Cake/TestSuite/Coverage/HtmlCoverageReport.php b/lib/Cake/TestSuite/Coverage/HtmlCoverageReport.php index 5cc24a5d2..f85d13d1f 100644 --- a/lib/Cake/TestSuite/Coverage/HtmlCoverageReport.php +++ b/lib/Cake/TestSuite/Coverage/HtmlCoverageReport.php @@ -16,9 +16,6 @@ * @since CakePHP(tm) v 2.0 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ - -PHP_CodeCoverage_Filter::getInstance()->addFileToBlacklist(__FILE__, 'DEFAULT'); - App::uses('BaseCoverageReport', 'TestSuite/Coverage'); class HtmlCoverageReport extends BaseCoverageReport { diff --git a/lib/Cake/TestSuite/Coverage/TextCoverageReport.php b/lib/Cake/TestSuite/Coverage/TextCoverageReport.php index 1739ef020..0e2c2bc67 100644 --- a/lib/Cake/TestSuite/Coverage/TextCoverageReport.php +++ b/lib/Cake/TestSuite/Coverage/TextCoverageReport.php @@ -18,8 +18,6 @@ */ App::uses('BaseCoverageReport', 'TestSuite/Coverage'); -PHP_CodeCoverage_Filter::getInstance()->addFileToBlacklist(__FILE__, 'DEFAULT'); - class TextCoverageReport extends BaseCoverageReport { /** diff --git a/lib/Cake/TestSuite/Fixture/CakeFixtureManager.php b/lib/Cake/TestSuite/Fixture/CakeFixtureManager.php index cec443500..59638986b 100644 --- a/lib/Cake/TestSuite/Fixture/CakeFixtureManager.php +++ b/lib/Cake/TestSuite/Fixture/CakeFixtureManager.php @@ -16,8 +16,6 @@ * @since CakePHP(tm) v 2.0 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ -PHP_CodeCoverage_Filter::getInstance()->addFileToBlacklist(__FILE__, 'DEFAULT'); - App::uses('ConnectionManager', 'Model'); App::uses('ClassRegistry', 'Utility'); diff --git a/lib/Cake/TestSuite/Fixture/CakeTestFixture.php b/lib/Cake/TestSuite/Fixture/CakeTestFixture.php index e2756ad4b..11fe4b236 100644 --- a/lib/Cake/TestSuite/Fixture/CakeTestFixture.php +++ b/lib/Cake/TestSuite/Fixture/CakeTestFixture.php @@ -16,9 +16,6 @@ * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ - -PHP_CodeCoverage_Filter::getInstance()->addFileToBlacklist(__FILE__, 'DEFAULT'); - App::uses('CakeSchema', 'Model'); /** diff --git a/lib/Cake/TestSuite/Reporter/CakeBaseReporter.php b/lib/Cake/TestSuite/Reporter/CakeBaseReporter.php index b73fd2d2a..c7f610391 100644 --- a/lib/Cake/TestSuite/Reporter/CakeBaseReporter.php +++ b/lib/Cake/TestSuite/Reporter/CakeBaseReporter.php @@ -17,8 +17,6 @@ */ require_once 'PHPUnit/TextUI/ResultPrinter.php'; -PHP_CodeCoverage_Filter::getInstance()->addFileToBlacklist(__FILE__, 'DEFAULT'); - /** * CakeBaseReporter contains common reporting features used in the CakePHP Test suite * @@ -214,4 +212,4 @@ class CakeBaseReporter extends PHPUnit_TextUI_ResultPrinter { $this->paintPass($test, $time); } -} \ No newline at end of file +} diff --git a/lib/Cake/TestSuite/Reporter/CakeHtmlReporter.php b/lib/Cake/TestSuite/Reporter/CakeHtmlReporter.php index ef744dba2..a523b4b41 100644 --- a/lib/Cake/TestSuite/Reporter/CakeHtmlReporter.php +++ b/lib/Cake/TestSuite/Reporter/CakeHtmlReporter.php @@ -17,8 +17,6 @@ */ App::uses('CakeBaseReporter', 'TestSuite/Reporter'); -PHP_CodeCoverage_Filter::getInstance()->addFileToBlacklist(__FILE__, 'DEFAULT'); - /** * CakeHtmlReporter Reports Results of TestSuites and Test Cases * in an HTML format / context. diff --git a/lib/Cake/TestSuite/Reporter/CakeTextReporter.php b/lib/Cake/TestSuite/Reporter/CakeTextReporter.php index 8de7269dc..543b9f014 100644 --- a/lib/Cake/TestSuite/Reporter/CakeTextReporter.php +++ b/lib/Cake/TestSuite/Reporter/CakeTextReporter.php @@ -15,12 +15,9 @@ * @since CakePHP(tm) v 1.3 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ - App::uses('CakeBaseReporter', 'TestSuite/Reporter'); App::uses('TextCoverageReport', 'TestSuite/Coverage'); -PHP_CodeCoverage_Filter::getInstance()->addFileToBlacklist(__FILE__, 'DEFAULT'); - /** * CakeTextReporter contains reporting features used for plain text based output *