Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Very crude dispatch cycle is working now.
The code is pretty simple right now as it doesn't attempt any fancy footwork around mocks or giving you ways to only get the just the view without the layout. It is also not possible to get the view variables just yet. I've also added a stub response to smooth over any issues where someone might try and send a response by accident or on purpose :)
- Loading branch information
Showing
3 changed files
with
77 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
/** | ||
* CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html> | ||
* 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://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests | ||
* @since 3.0.0 | ||
* @license http://www.opensource.org/licenses/mit-license.php MIT License | ||
*/ | ||
namespace Cake\TestSuite\Stub; | ||
|
||
use Cake\Network\Response as Base; | ||
|
||
/** | ||
* A response class intended for test cases. | ||
*/ | ||
class Response extends Base { | ||
|
||
/** | ||
* Stub the send() method so headers and output are not sent. | ||
* | ||
* @return void | ||
*/ | ||
public function send() { | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters