Skip to content

Commit

Permalink
more cs
Browse files Browse the repository at this point in the history
  • Loading branch information
euromark committed Apr 2, 2014
1 parent 0d09a54 commit bbe3b6a
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 1 deletion.
13 changes: 13 additions & 0 deletions lib/Cake/Test/test_app/Controller/TestsAppsPostsController.php
Expand Up @@ -27,6 +27,11 @@ class TestsAppsPostsController extends AppController {

public $viewPath = 'TestsApps';

/**
* add method
*
* @return void
*/
public function add() {
$data = array(
'Post' => array(
Expand All @@ -44,6 +49,7 @@ public function add() {
/**
* check URL params
*
* @return void
*/
public function url_var() {
$this->set('params', $this->request->params);
Expand All @@ -53,12 +59,18 @@ public function url_var() {
/**
* post var testing
*
* @return void
*/
public function post_var() {
$this->set('data', $this->request->data);
$this->render('index');
}

/**
* input_data()
*
* @return void
*/
public function input_data() {
$this->set('data', $this->request->input('json_decode', true));
$this->render('index');
Expand All @@ -67,6 +79,7 @@ public function input_data() {
/**
* Fixturized action for testAction()
*
* @return void
*/
public function fixtured() {
$this->set('posts', $this->Post->find('all'));
Expand Down
1 change: 1 addition & 0 deletions lib/Cake/TestSuite/CakeTestSuiteCommand.php
Expand Up @@ -57,6 +57,7 @@ public function __construct($loader, $params = array()) {
*
* @param array $argv
* @param boolean $exit
* @return void
*/
public function run(array $argv, $exit = true) {
$this->handleArguments($argv);
Expand Down
1 change: 1 addition & 0 deletions lib/Cake/TestSuite/ControllerTestCase.php
Expand Up @@ -94,6 +94,7 @@ class InterceptContentHelper extends Helper {
* Intercepts and stores the contents of the view before the layout is rendered
*
* @param string $viewFile The view file
* @return void
*/
public function afterRender($viewFile) {
$this->_View->assign('__view_no_layout__', $this->_View->fetch('content'));
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/TestSuite/Fixture/CakeTestModel.php
Expand Up @@ -47,8 +47,8 @@ public function __construct($id = false, $table = null, $ds = null) {
* @param array $data
* @param boolean|array $validate
* @param array $fieldList
* @return void
*/

public function save($data = null, $validate = true, $fieldList = array()) {
$db = $this->getDataSource();
$db->columns['datetime']['formatter'] = 'CakeTestSuiteDispatcher::date';
Expand Down
10 changes: 10 additions & 0 deletions lib/Cake/TestSuite/Reporter/CakeBaseReporter.php
Expand Up @@ -122,6 +122,7 @@ public function baseUrl() {
* Print result
*
* @param PHPUnit_Framework_TestResult $result
* @return void
*/
public function printResult(PHPUnit_Framework_TestResult $result) {
$this->paintFooter($result);
Expand All @@ -131,6 +132,7 @@ public function printResult(PHPUnit_Framework_TestResult $result) {
* Paint result
*
* @param PHPUnit_Framework_TestResult $result
* @return void
*/
public function paintResult(PHPUnit_Framework_TestResult $result) {
$this->paintFooter($result);
Expand All @@ -142,6 +144,7 @@ public function paintResult(PHPUnit_Framework_TestResult $result) {
* @param PHPUnit_Framework_Test $test
* @param Exception $e
* @param float $time
* @return void
*/
public function addError(PHPUnit_Framework_Test $test, Exception $e, $time) {
$this->paintException($e, $test);
Expand All @@ -153,6 +156,7 @@ public function addError(PHPUnit_Framework_Test $test, Exception $e, $time) {
* @param PHPUnit_Framework_Test $test
* @param PHPUnit_Framework_AssertionFailedError $e
* @param float $time
* @return void
*/
public function addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, $time) {
$this->paintFail($e, $test);
Expand All @@ -164,6 +168,7 @@ public function addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_Asser
* @param PHPUnit_Framework_Test $test
* @param Exception $e
* @param float $time
* @return void
*/
public function addIncompleteTest(PHPUnit_Framework_Test $test, Exception $e, $time) {
$this->paintSkip($e, $test);
Expand All @@ -175,6 +180,7 @@ public function addIncompleteTest(PHPUnit_Framework_Test $test, Exception $e, $t
* @param PHPUnit_Framework_Test $test
* @param Exception $e
* @param float $time
* @return void
*/
public function addSkippedTest(PHPUnit_Framework_Test $test, Exception $e, $time) {
$this->paintSkip($e, $test);
Expand All @@ -184,6 +190,7 @@ public function addSkippedTest(PHPUnit_Framework_Test $test, Exception $e, $time
* A test suite started.
*
* @param PHPUnit_Framework_TestSuite $suite
* @return void
*/
public function startTestSuite(PHPUnit_Framework_TestSuite $suite) {
if (!$this->_headerSent) {
Expand All @@ -196,6 +203,7 @@ public function startTestSuite(PHPUnit_Framework_TestSuite $suite) {
* A test suite ended.
*
* @param PHPUnit_Framework_TestSuite $suite
* @return void
*/
public function endTestSuite(PHPUnit_Framework_TestSuite $suite) {
}
Expand All @@ -204,6 +212,7 @@ public function endTestSuite(PHPUnit_Framework_TestSuite $suite) {
* A test started.
*
* @param PHPUnit_Framework_Test $test
* @return void
*/
public function startTest(PHPUnit_Framework_Test $test) {
}
Expand All @@ -213,6 +222,7 @@ public function startTest(PHPUnit_Framework_Test $test) {
*
* @param PHPUnit_Framework_Test $test
* @param float $time
* @return void
*/
public function endTest(PHPUnit_Framework_Test $test, $time) {
$this->numAssertions += $test->getNumAssertions();
Expand Down

0 comments on commit bbe3b6a

Please sign in to comment.