Skip to content
This repository has been archived by the owner on Nov 2, 2018. It is now read-only.

Commit

Permalink
Not sure if code is shit, or found bug in Travis-CI
Browse files Browse the repository at this point in the history
  • Loading branch information
hassankhan committed Jan 26, 2014
1 parent 1a8172e commit c5406d5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/Zepto/FileLoader/MarkdownLoaderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@ public function testLoad()
*/
public function testLoadMultipleFiles()
{
$done_text_1 = "<h2>This is a Sub Page Index</h2>" . PHP_EOL . PHP_EOL
$sub_page_index_content = "<h2>This is a Sub Page Index</h2>" . PHP_EOL . PHP_EOL
. "<p>This is index.md in the 'sub' folder.</p>" . PHP_EOL . PHP_EOL
. "<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>" . PHP_EOL . PHP_EOL
. "<p>Donec ultricies tristique nulla et mattis.</p>" . PHP_EOL. PHP_EOL
. "<p>Phasellus id massa eget nisl congue blandit sit amet id ligula.</p>" . PHP_EOL;

$done_text_2 = "<h2>This is a Sub Page</h2>" . PHP_EOL . PHP_EOL
$sub_page_content = "<h2>This is a Sub Page</h2>" . PHP_EOL . PHP_EOL
. "<p>This is page.md in the 'sub' folder.</p>" . PHP_EOL . PHP_EOL
. "<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>" . PHP_EOL . PHP_EOL
. "<p>Donec ultricies tristique nulla et mattis.</p>" . PHP_EOL . PHP_EOL
Expand All @@ -81,22 +81,22 @@ public function testLoadMultipleFiles()

$parser::staticExpects($this->any())
->method('defaultTransform')
->will($this->onConsecutiveCalls($done_text_1, $done_text_2));
->will($this->onConsecutiveCalls($sub_page_index_content, $sub_page_content));

$loader = new MarkdownLoader($parser);

$files['sub/index.md'] = array(
'meta' => array(
'title' => 'Sub Page Index'
),
'content' => $done_text_1
'content' => $sub_page_index_content
);

$files['sub/page.md'] = array(
'meta' => array(
'title' => 'Sub Page'
),
'content' => $done_text_2
'content' => $sub_page_content
);

$result = $loader->load(ROOT_DIR . 'content/sub', array('md'));
Expand Down

0 comments on commit c5406d5

Please sign in to comment.