From 80dbeea163339a25fbb84c58c0304d5dc2e17e36 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Tue, 10 Nov 2009 22:20:09 -0500 Subject: [PATCH] remove unnecessary code --- test/ComicPressComicPostTest.php | 37 -------------------------------- 1 file changed, 37 deletions(-) diff --git a/test/ComicPressComicPostTest.php b/test/ComicPressComicPostTest.php index 2754e63..9ed03a2 100644 --- a/test/ComicPressComicPostTest.php +++ b/test/ComicPressComicPostTest.php @@ -10,43 +10,6 @@ class ComicPressComicPostTest extends PHPUnit_Framework_TestCase { $this->p = new ComicPressComicPost(); } - function providerTestGenerateComicTag() { - return array( - array( - "150x150", - ), - array( - false, - ) - ); - } - - /** - * @dataProvider providerTestGenerateComicTag - */ - function testGenerateComicImgTag($dimensions) { - $this->p->comicpress = (object)array( - 'comicpress_options' => array( - 'comic_dimensions' => $dimensions - ) - ); - - $source = $this->p->get_comic_img_tag("test.gif", "comic"); - - if (count($parts = explode("x", $dimensions)) == 2) { - list($width, $height) = $parts; - $dimensions = compact('width', 'height'); - } - - foreach (array('width', 'height') as $field) { - if (isset($dimensions[$field])) { - $this->assertTrue(strpos($source, "${field}=\"{$dimensions[$field]}\"") !== false, $field); - } else { - $this->assertTrue(strpos($source, "${field}=") === false, 'not set'); - } - } - } - function providerTestNormalizeOrdering() { return array( array(