This commit is contained in:
euromark 2014-04-02 03:09:42 +02:00
parent 0d09a54033
commit bbe3b6a439
5 changed files with 26 additions and 1 deletions

View file

@ -27,6 +27,11 @@ class TestsAppsPostsController extends AppController {
public $viewPath = 'TestsApps'; public $viewPath = 'TestsApps';
/**
* add method
*
* @return void
*/
public function add() { public function add() {
$data = array( $data = array(
'Post' => array( 'Post' => array(
@ -44,6 +49,7 @@ class TestsAppsPostsController extends AppController {
/** /**
* check URL params * check URL params
* *
* @return void
*/ */
public function url_var() { public function url_var() {
$this->set('params', $this->request->params); $this->set('params', $this->request->params);
@ -53,12 +59,18 @@ class TestsAppsPostsController extends AppController {
/** /**
* post var testing * post var testing
* *
* @return void
*/ */
public function post_var() { public function post_var() {
$this->set('data', $this->request->data); $this->set('data', $this->request->data);
$this->render('index'); $this->render('index');
} }
/**
* input_data()
*
* @return void
*/
public function input_data() { public function input_data() {
$this->set('data', $this->request->input('json_decode', true)); $this->set('data', $this->request->input('json_decode', true));
$this->render('index'); $this->render('index');
@ -67,6 +79,7 @@ class TestsAppsPostsController extends AppController {
/** /**
* Fixturized action for testAction() * Fixturized action for testAction()
* *
* @return void
*/ */
public function fixtured() { public function fixtured() {
$this->set('posts', $this->Post->find('all')); $this->set('posts', $this->Post->find('all'));

View file

@ -57,6 +57,7 @@ class CakeTestSuiteCommand extends PHPUnit_TextUI_Command {
* *
* @param array $argv * @param array $argv
* @param boolean $exit * @param boolean $exit
* @return void
*/ */
public function run(array $argv, $exit = true) { public function run(array $argv, $exit = true) {
$this->handleArguments($argv); $this->handleArguments($argv);

View file

@ -94,6 +94,7 @@ class InterceptContentHelper extends Helper {
* Intercepts and stores the contents of the view before the layout is rendered * Intercepts and stores the contents of the view before the layout is rendered
* *
* @param string $viewFile The view file * @param string $viewFile The view file
* @return void
*/ */
public function afterRender($viewFile) { public function afterRender($viewFile) {
$this->_View->assign('__view_no_layout__', $this->_View->fetch('content')); $this->_View->assign('__view_no_layout__', $this->_View->fetch('content'));

View file

@ -47,8 +47,8 @@ class CakeTestModel extends Model {
* @param array $data * @param array $data
* @param boolean|array $validate * @param boolean|array $validate
* @param array $fieldList * @param array $fieldList
* @return void
*/ */
public function save($data = null, $validate = true, $fieldList = array()) { public function save($data = null, $validate = true, $fieldList = array()) {
$db = $this->getDataSource(); $db = $this->getDataSource();
$db->columns['datetime']['formatter'] = 'CakeTestSuiteDispatcher::date'; $db->columns['datetime']['formatter'] = 'CakeTestSuiteDispatcher::date';

View file

@ -122,6 +122,7 @@ class CakeBaseReporter extends PHPUnit_TextUI_ResultPrinter {
* Print result * Print result
* *
* @param PHPUnit_Framework_TestResult $result * @param PHPUnit_Framework_TestResult $result
* @return void
*/ */
public function printResult(PHPUnit_Framework_TestResult $result) { public function printResult(PHPUnit_Framework_TestResult $result) {
$this->paintFooter($result); $this->paintFooter($result);
@ -131,6 +132,7 @@ class CakeBaseReporter extends PHPUnit_TextUI_ResultPrinter {
* Paint result * Paint result
* *
* @param PHPUnit_Framework_TestResult $result * @param PHPUnit_Framework_TestResult $result
* @return void
*/ */
public function paintResult(PHPUnit_Framework_TestResult $result) { public function paintResult(PHPUnit_Framework_TestResult $result) {
$this->paintFooter($result); $this->paintFooter($result);
@ -142,6 +144,7 @@ class CakeBaseReporter extends PHPUnit_TextUI_ResultPrinter {
* @param PHPUnit_Framework_Test $test * @param PHPUnit_Framework_Test $test
* @param Exception $e * @param Exception $e
* @param float $time * @param float $time
* @return void
*/ */
public function addError(PHPUnit_Framework_Test $test, Exception $e, $time) { public function addError(PHPUnit_Framework_Test $test, Exception $e, $time) {
$this->paintException($e, $test); $this->paintException($e, $test);
@ -153,6 +156,7 @@ class CakeBaseReporter extends PHPUnit_TextUI_ResultPrinter {
* @param PHPUnit_Framework_Test $test * @param PHPUnit_Framework_Test $test
* @param PHPUnit_Framework_AssertionFailedError $e * @param PHPUnit_Framework_AssertionFailedError $e
* @param float $time * @param float $time
* @return void
*/ */
public function addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, $time) { public function addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, $time) {
$this->paintFail($e, $test); $this->paintFail($e, $test);
@ -164,6 +168,7 @@ class CakeBaseReporter extends PHPUnit_TextUI_ResultPrinter {
* @param PHPUnit_Framework_Test $test * @param PHPUnit_Framework_Test $test
* @param Exception $e * @param Exception $e
* @param float $time * @param float $time
* @return void
*/ */
public function addIncompleteTest(PHPUnit_Framework_Test $test, Exception $e, $time) { public function addIncompleteTest(PHPUnit_Framework_Test $test, Exception $e, $time) {
$this->paintSkip($e, $test); $this->paintSkip($e, $test);
@ -175,6 +180,7 @@ class CakeBaseReporter extends PHPUnit_TextUI_ResultPrinter {
* @param PHPUnit_Framework_Test $test * @param PHPUnit_Framework_Test $test
* @param Exception $e * @param Exception $e
* @param float $time * @param float $time
* @return void
*/ */
public function addSkippedTest(PHPUnit_Framework_Test $test, Exception $e, $time) { public function addSkippedTest(PHPUnit_Framework_Test $test, Exception $e, $time) {
$this->paintSkip($e, $test); $this->paintSkip($e, $test);
@ -184,6 +190,7 @@ class CakeBaseReporter extends PHPUnit_TextUI_ResultPrinter {
* A test suite started. * A test suite started.
* *
* @param PHPUnit_Framework_TestSuite $suite * @param PHPUnit_Framework_TestSuite $suite
* @return void
*/ */
public function startTestSuite(PHPUnit_Framework_TestSuite $suite) { public function startTestSuite(PHPUnit_Framework_TestSuite $suite) {
if (!$this->_headerSent) { if (!$this->_headerSent) {
@ -196,6 +203,7 @@ class CakeBaseReporter extends PHPUnit_TextUI_ResultPrinter {
* A test suite ended. * A test suite ended.
* *
* @param PHPUnit_Framework_TestSuite $suite * @param PHPUnit_Framework_TestSuite $suite
* @return void
*/ */
public function endTestSuite(PHPUnit_Framework_TestSuite $suite) { public function endTestSuite(PHPUnit_Framework_TestSuite $suite) {
} }
@ -204,6 +212,7 @@ class CakeBaseReporter extends PHPUnit_TextUI_ResultPrinter {
* A test started. * A test started.
* *
* @param PHPUnit_Framework_Test $test * @param PHPUnit_Framework_Test $test
* @return void
*/ */
public function startTest(PHPUnit_Framework_Test $test) { public function startTest(PHPUnit_Framework_Test $test) {
} }
@ -213,6 +222,7 @@ class CakeBaseReporter extends PHPUnit_TextUI_ResultPrinter {
* *
* @param PHPUnit_Framework_Test $test * @param PHPUnit_Framework_Test $test
* @param float $time * @param float $time
* @return void
*/ */
public function endTest(PHPUnit_Framework_Test $test, $time) { public function endTest(PHPUnit_Framework_Test $test, $time) {
$this->numAssertions += $test->getNumAssertions(); $this->numAssertions += $test->getNumAssertions();