/** * @depends testAddCategory */ public function test_getCategories($Category) { $Help = new Help(); $cats = $Help->getCategories(); $this->assertTrue(count($cats) > 0); $id = $Help->getCategoryIDFromSlug($Category->url_slug); $this->assertFalse(!filter_var($id, FILTER_VALIDATE_INT)); $this->setExpectedException("Exception", "Cannot fetch category ID - no URL slug given"); $Help->getCategoryIDFromSlug(); }