diff --git a/Tests/AllTests.php b/Tests/AllTests.php deleted file mode 100644 index 52b464d..0000000 --- a/Tests/AllTests.php +++ /dev/null @@ -1,24 +0,0 @@ -addTestSuite('\Bundle\MarkdownBundle\Tests\FeatureTest'); - $suite->addTestSuite('\Bundle\MarkdownBundle\Tests\PresetTest'); - - return $suite; - } - -} - diff --git a/Tests/FeatureTest.php b/Tests/FeatureTest.php index bad4757..e4fff57 100644 --- a/Tests/FeatureTest.php +++ b/Tests/FeatureTest.php @@ -4,9 +4,6 @@ namespace Bundle\MarkdownBundle\Tests; use Bundle\MarkdownBundle\Parser\MarkdownParser as Parser; -require_once 'PHPUnit/Framework.php'; -require_once __DIR__.'/../Parser/MarkdownParser.php'; - class FeatureTest extends \PHPUnit_Framework_TestCase { @@ -796,4 +793,4 @@ EOF; $this->assertEquals($html, $parser->transform($text)); } -} \ No newline at end of file +} diff --git a/Tests/Performance/Base.php b/Tests/Performance/Base.php index c3e60eb..2eda3f1 100644 --- a/Tests/Performance/Base.php +++ b/Tests/Performance/Base.php @@ -4,8 +4,6 @@ namespace Bundle\MarkdownBundle\Tests\Performance; use Bundle\MarkdownBundle\Parser\MarkdownParser as Parser; -require_once __DIR__.'/../../Parser/MarkdownParser.php'; - abstract class Base { protected $buffer; diff --git a/Tests/Performance/Light.php b/Tests/Performance/Light.php index 5ee7776..102f63a 100644 --- a/Tests/Performance/Light.php +++ b/Tests/Performance/Light.php @@ -2,10 +2,6 @@ namespace Bundle\MarkdownBundle\Tests\Performance; -require_once __DIR__.'/Base.php'; - -require_once __DIR__.'/../../Parser/Preset/Light.php'; - use Bundle\MarkdownBundle\Parser\Preset\Light as Parser; /** @@ -20,4 +16,4 @@ class Light extends Base { return new Parser(); } -} \ No newline at end of file +} diff --git a/Tests/Performance/Max.php b/Tests/Performance/Max.php index 62c39cd..395eb48 100644 --- a/Tests/Performance/Max.php +++ b/Tests/Performance/Max.php @@ -2,10 +2,6 @@ namespace Bundle\MarkdownBundle\Tests\Performance; -require_once __DIR__.'/Base.php'; - -require_once __DIR__.'/../../Parser/Preset/Max.php'; - use Bundle\MarkdownBundle\Parser\Preset\Max as Parser; /** @@ -20,4 +16,4 @@ class Max extends Base { return new Parser(); } -} \ No newline at end of file +} diff --git a/Tests/Performance/Medium.php b/Tests/Performance/Medium.php index 9664d7b..2d97fc9 100644 --- a/Tests/Performance/Medium.php +++ b/Tests/Performance/Medium.php @@ -2,10 +2,6 @@ namespace Bundle\MarkdownBundle\Tests\Performance; -require_once __DIR__.'/Base.php'; - -require_once __DIR__.'/../../Parser/Preset/Medium.php'; - use Bundle\MarkdownBundle\Parser\Preset\Medium as Parser; /** @@ -20,4 +16,4 @@ class Medium extends Base { return new Parser(); } -} \ No newline at end of file +} diff --git a/Tests/Performance/Min.php b/Tests/Performance/Min.php index ecf1ae9..51a8290 100644 --- a/Tests/Performance/Min.php +++ b/Tests/Performance/Min.php @@ -2,10 +2,6 @@ namespace Bundle\MarkdownBundle\Tests\Performance; -require_once __DIR__.'/Base.php'; - -require_once __DIR__.'/../../Parser/Preset/Min.php'; - use Bundle\MarkdownBundle\Parser\Preset\Min as Parser; /** @@ -20,4 +16,4 @@ class Min extends Base { return new Parser(); } -} \ No newline at end of file +} diff --git a/Tests/Performance/index.php b/Tests/Performance/index.php index dcf0c0a..24a7225 100644 --- a/Tests/Performance/index.php +++ b/Tests/Performance/index.php @@ -5,4 +5,4 @@ $name = 'Min'; require_once __DIR__.'/'.$name.'.php'; $class = 'Bundle\\MarkdownBundle\\Tests\\Performance\\'.$name; $test = new $class(); -print nl2br($test->run(10)); \ No newline at end of file +print nl2br($test->run(10)); diff --git a/Tests/PresetTest.php b/Tests/PresetTest.php index 4ac00eb..d0aa121 100644 --- a/Tests/PresetTest.php +++ b/Tests/PresetTest.php @@ -6,13 +6,6 @@ use Bundle\MarkdownBundle\Parser\MarkdownParser as Parser; use Bundle\MarkdownBundle\Parser\Preset as Preset; -require_once 'PHPUnit/Framework.php'; -require_once __DIR__.'/../Parser/MarkdownParser.php'; -require_once __DIR__.'/../Parser/Preset/Min.php'; -require_once __DIR__.'/../Parser/Preset/Max.php'; -require_once __DIR__.'/../Parser/Preset/Medium.php'; -require_once __DIR__.'/../Parser/Preset/Light.php'; - class PresetTest extends \PHPUnit_Framework_TestCase { @@ -53,4 +46,4 @@ class PresetTest extends \PHPUnit_Framework_TestCase { return file_get_contents(__DIR__.'/fixtures/big_text.html'); } -} \ No newline at end of file +}