Skip to content

Commit

Permalink
Unskip a few test cases.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Aug 22, 2014
1 parent 22d2e32 commit ce53fe8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
5 changes: 2 additions & 3 deletions tests/TestCase/BasicsTest.php
Expand Up @@ -415,17 +415,16 @@ public function testDebug() {
* @return void
*/
public function testPr() {
$this->skipIf(php_sapi_name() === 'cli', 'Skipping web test in cli mode');
ob_start();
pr('this is a test');
$result = ob_get_clean();
$expected = "<pre>this is a test</pre>";
$expected = "\nthis is a test\n";
$this->assertEquals($expected, $result);

ob_start();
pr(array('this' => 'is', 'a' => 'test'));
$result = ob_get_clean();
$expected = "<pre>Array\n(\n [this] => is\n [a] => test\n)\n</pre>";
$expected = "\nArray\n(\n [this] => is\n [a] => test\n)\n\n";
$this->assertEquals($expected, $result);
}

Expand Down
1 change: 0 additions & 1 deletion tests/TestCase/View/Helper/HtmlHelperTest.php
Expand Up @@ -757,7 +757,6 @@ public function testPluginCssTimestamping() {
*/
public function testScriptTimestamping() {
$this->skipIf(!is_writable(WWW_ROOT . 'js'), 'webroot/js is not Writable, timestamp testing has been skipped.');

Configure::write('debug', true);
Configure::write('Asset.timestamp', true);

Expand Down
Empty file added tests/test_app/webroot/js/empty
Empty file.

0 comments on commit ce53fe8

Please sign in to comment.