Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove test case that is no longer useful.

It is impossible for the current test to ever fail in the test suite, as
PHPUnit will always be loaded.
  • Loading branch information...
commit a7708c914ff1bc12232cb8650723c69f9ab26f33 1 parent 386be52
@markstory markstory authored
Showing with 0 additions and 71 deletions.
  1. +0 −71 lib/Cake/Test/Case/TestSuite/CakeTestSuiteDispatcherTest.php
View
71 lib/Cake/Test/Case/TestSuite/CakeTestSuiteDispatcherTest.php
@@ -1,71 +0,0 @@
-<?php
-/**
- * CakeTestSuiteDispatcherTest file
- *
- * Test Case for CakeTestSuiteDispatcher class
- *
- * PHP version 5
- *
- * CakePHP : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- *
- * Licensed under The MIT License
- * For full copyright and license information, please see the LICENSE.txt
- * Redistributions of files must retain the above copyright notice.
- *
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP Project
- * @package Cake.Test.Case.TestSuite
- * @since CakePHP v 2.3.2
- * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
- */
-
-class CakeTestSuiteDispatcherTest extends CakeTestCase {
-
-/**
- * setUp method
- *
- * @return void
- */
- public function setUp() {
- $this->vendors = App::path('vendors');
- $this->includePath = ini_get('include_path');
- }
-
-/**
- * tearDown method
- *
- * @return void
- */
- public function tearDown() {
- App::build(array('Vendor' => $this->vendors), App::RESET);
- ini_set('include_path', $this->includePath);
- }
-
-/**
- * Helper method to set vendor path
- *
- * @return void
- */
- protected function _clearPaths() {
- App::build(array('Vendor' => array('junk')), App::RESET);
- ini_set('include_path', 'junk');
- }
-
-/**
- * testLoadTestFramework method
- *
- * @return void
- */
- public function testLoadTestFramework() {
- $dispatcher = new CakeTestSuiteDispatcher();
-
- $this->assertTrue($dispatcher->loadTestFramework());
-
- $this->_clearPaths();
-
- $this->setExpectedException('PHPUnit_Framework_Error_Warning');
- $dispatcher->loadTestFramework();
- }
-
-}
Please sign in to comment.
Something went wrong with that request. Please try again.