diff --git a/test/OPDSTest.php b/test/OPDSTest.php index edaa245..9d6aafc 100644 --- a/test/OPDSTest.php +++ b/test/OPDSTest.php @@ -38,10 +38,8 @@ class OpdsTest extends PHPUnit_Framework_TestCase global $config; $page = Base::PAGE_INDEX; $query = NULL; - $search = NULL; $qid = NULL; $n = "1"; - $database = NULL; $_SERVER['QUERY_STRING'] = ""; $config['cops_subtitle_default'] = "My subtitle"; @@ -66,10 +64,8 @@ class OpdsTest extends PHPUnit_Framework_TestCase "One book" => dirname(__FILE__) . "/BaseWithOneBook/"); $page = Base::PAGE_AUTHOR_DETAIL; $query = NULL; - $search = NULL; $qid = "1"; $n = "1"; - $database = NULL; $_SERVER['QUERY_STRING'] = "page=" . Base::PAGE_AUTHOR_DETAIL . "&id=1"; $_GET ["db"] = "0"; @@ -87,10 +83,8 @@ class OpdsTest extends PHPUnit_Framework_TestCase global $config; $page = Base::PAGE_AUTHOR_DETAIL; $query = NULL; - $search = NULL; $qid = "1"; $n = "1"; - $database = NULL; $_SERVER['QUERY_STRING'] = "page=" . Base::PAGE_AUTHOR_DETAIL . "&id=1&n=1"; $config['cops_max_item_per_page'] = 2; diff --git a/test/bookTest.php b/test/bookTest.php index 05f3193..eb1c8fa 100644 --- a/test/bookTest.php +++ b/test/bookTest.php @@ -101,6 +101,7 @@ class BookTest extends PHPUnit_Framework_TestCase { // All books by first letter list ($entryArray, $totalNumber) = Book::getBooksByStartingLetter ("T", -1); + $this->assertEquals (-1, $totalNumber); $this->assertCount (3, $entryArray); } diff --git a/test/pageTest.php b/test/pageTest.php index 4af18f7..d51e48a 100644 --- a/test/pageTest.php +++ b/test/pageTest.php @@ -308,7 +308,6 @@ class PageTest extends PHPUnit_Framework_TestCase public function testPageAllSeries () { - global $config; $page = Base::PAGE_ALL_SERIES; $query = NULL; $qid = NULL;