From f29981d0a39a8ce34fb853ad85be6f9c76439430 Mon Sep 17 00:00:00 2001 From: Emanuil <4thmail@gmail.com> Date: Mon, 22 Jul 2013 00:10:01 +0300 Subject: [PATCH] fix test case --- tests/Test.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tests/Test.php b/tests/Test.php index ff8a126..60991c3 100644 --- a/tests/Test.php +++ b/tests/Test.php @@ -9,9 +9,9 @@ class Test extends PHPUnit_Framework_TestCase /** * @dataProvider provider */ - public function testAdd($expected, $actual) + public function test_($markdown, $expected) { - $markup = Parsedown::instance()->parse('sdf'); + $actual = Parsedown::instance()->parse($markdown); $this->assertEquals($expected, $actual); } @@ -35,9 +35,7 @@ class Test extends PHPUnit_Framework_TestCase $expected_markup = file_get_contents(__DIR__.'/'.self::provider_dir.$basename.'.html'); - $actual_markup = Parsedown::instance()->parse($markdown); - - $provider []= array($expected_markup, $actual_markup); + $provider []= array($markdown, $expected_markup); } }