Initial commit

This commit is contained in:
mareksebera 2014-09-10 20:20:58 +02:00
commit 3b93da31de
1004 changed files with 265840 additions and 0 deletions

View file

@ -0,0 +1,46 @@
<?php
/**
* Test Suite Test Plugin Cache Engine class.
*
* 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
* @package Cake.Test.TestApp.Plugin.TestPlugin.Lib.Cache.Engine
* @since CakePHP(tm) v 1.3
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
/**
* Class TestPluginCacheEngine
*
* @package Cake.Test.TestApp.Plugin.TestPlugin.Lib.Cache.Engine
*/
class TestPluginCacheEngine extends CacheEngine {
public function write($key, $value, $duration) {
}
public function read($key) {
}
public function increment($key, $offset = 1) {
}
public function decrement($key, $offset = 1) {
}
public function delete($key) {
}
public function clear($check) {
}
public function clearGroup($group) {
}
}

View file

@ -0,0 +1,25 @@
<?php
/**
* Test Suite CustomLibClass Library
*
* 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
* @package Cake.Test.TestApp.Plugin.TestPlugin.Lib.Custom.Package
* @since CakePHP(tm) v 1.2.0.5432
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
/**
* Class CustomLibClass
*
* @package Cake.Test.TestApp.Plugin.TestPlugin.Lib.Custom.Package
*/
class CustomLibClass {
}

View file

@ -0,0 +1,39 @@
<?php
/**
* Exception Renderer
*
* Provides Exception rendering features. Which allow exceptions to be rendered
* as HTML pages.
*
* CakePHP(tm) : 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(tm) Project
* @package Cake.Test.TestApp.Plugin.TestPlugin.Lib.Error
* @since CakePHP(tm) v 2.0
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
App::uses('ExceptionRenderer', 'Error');
/**
* Class TestPluginExceptionRenderer
*
* @package Cake.Test.TestApp.Plugin.TestPlugin.Lib.Error
*/
class TestPluginExceptionRenderer extends ExceptionRenderer {
/**
* Renders the response for the exception.
*
* @return void
*/
public function render() {
echo 'Rendered by test plugin';
}
}

View file

@ -0,0 +1,31 @@
<?php
/**
* Test Suite Test Plugin Logging stream class.
*
* 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
* @package Cake.Test.TestApp.Plugin.TestPlugin.Lib.Log.Engine
* @since CakePHP(tm) v 1.3
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
App::uses('CakeLogInterface', 'Log');
/**
* Class TestPluginLog
*
* @package Cake.Test.TestApp.Plugin.TestPlugin.Lib.Log.Engine
*/
class TestPluginLog implements CakeLogInterface {
public function write($type, $message) {
}
}

View file

@ -0,0 +1,36 @@
<?php
/**
* CakePHP(tm) : 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(tm) Project
* @package Cake.Test.TestApp.Routing.Filter
* @since CakePHP(tm) v 2.2
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
App::uses('DispatcherFilter', 'Routing');
/**
* Class Test2DispatcherFilter
*
* @package Cake.Test.TestApp.Routing.Filter
*/
class Test2DispatcherFilter extends DispatcherFilter {
public function beforeDispatch(CakeEvent $event) {
$event->data['response']->statusCode(500);
$event->stopPropagation();
return $event->data['response'];
}
public function afterDispatch(CakeEvent $event) {
$event->data['response']->statusCode(200);
}
}

View file

@ -0,0 +1,34 @@
<?php
/**
* CakePHP(tm) : 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(tm) Project
* @package Cake.Test.TestApp.Routing.Filter
* @since CakePHP(tm) v 2.2
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
App::uses('DispatcherFilter', 'Routing');
/**
* Class TestDispatcherFilter
*
* @package Cake.Test.TestApp.Routing.Filter
*/
class TestDispatcherFilter extends DispatcherFilter {
public function beforeDispatch(CakeEvent $event) {
$event->data['request']->params['altered'] = true;
}
public function afterDispatch(CakeEvent $event) {
$event->data['response']->statusCode(304);
}
}

View file

@ -0,0 +1,7 @@
<?php
App::uses('CakeRoute', 'Routing/Route');
class TestRoute extends CakeRoute {
}

View file

@ -0,0 +1,25 @@
<?php
/**
* Test Suite TestPlugin Library
*
* 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
* @package Cake.Test.TestApp.Plugin.TestPlugin.Lib
* @since CakePHP(tm) v 1.2.0.5432
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
/**
* Class TestPluginLibrary
*
* @package Cake.Test.TestApp.Plugin.TestPlugin.Lib
*/
class TestPluginLibrary {
}

View file

@ -0,0 +1,25 @@
<?php
/**
* Test Suite TestPlugin Other Library
*
* 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
* @package Cake.Test.TestApp.Plugin.TestPlugin.Lib
* @since CakePHP(tm) v 2.0.1
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
/**
* Class TestPluginOtherLibrary
*
* @package Cake.Test.TestApp.Plugin.TestPlugin.Lib
*/
class TestPluginOtherLibrary {
}