Skip to content

Instantly share code, notes, and snippets.

@markstory
Created May 21, 2015 01:43
Show Gist options
  • Save markstory/8aefc51d36498bf980df to your computer and use it in GitHub Desktop.
Save markstory/8aefc51d36498bf980df to your computer and use it in GitHub Desktop.
issue 6446
<?php
App::uses('ArticlesController', 'Controller');
/**
* ArticlesController Test Case
*
*/
class ArticlesControllerTest extends ControllerTestCase {
/**
* Fixtures
*
* @var array
*/
public $fixtures = array(
'app.article',
'app.comment'
);
public function testItWorks()
{
$this->assertTrue(true);
}
}
<?php
class BugShell extends Shell {
public function main() {
$this->dispatchShell('-app ' . APP . ' test app --debug');
$this->out('done');
}
}
$ Console/cake bug
Welcome to CakePHP v2.6.4 Console
---------------------------------------------------------------
App : app
Path: /Users/markstory/Sites/cake_dev/app/
---------------------------------------------------------------
Welcome to CakePHP v2.6.4 Console
---------------------------------------------------------------
App : app
Path: /Users/markstory/Sites/cake_dev/app/
---------------------------------------------------------------
CakePHP Test Shell
---------------------------------------------------------------
App Test Cases:
[1] Controller/ArticlesController
[2] Controller/CategoriesController
[3] Controller/Component/MyAuthComponent
[4] Controller/DemosController
[5] Controller/NewsController
[6] Controller/PostsController
[7] Controller/TasksController
[8] Controller/UsersController
[9] Model/Article
[10] Model/Author
[11] Model/Comment
[12] Model/HedgeStrike
[13] Model/Paste
[14] Model/Post
[15] Model/ReportItem
[16] Model/Session
[17] Model/Task
[18] Model/Url
What test case would you like to run?
[q] > 1
PHPUnit 3.7.38 by Sebastian Bergmann.
Starting test 'ArticlesControllerTest::testItWorks'.
.
Time: 2.45 seconds, Memory: 7.75Mb
OK (1 test, 1 assertion)
:) 21:43:37 markstory:app (2.6)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment