Class Ansel_TestBase

Description

Base class for Ansel test cases

$Horde: ansel/lib/tests/TestBase.php,v 1.1 2008/01/16 01:48:09 mrubinsk Exp $

Located in /lib/tests/TestBase.php (line 11)

PHPUnit_Framework_TestCase
   |
   --Ansel_TestBase
Direct descendents
Class Description
 class Ansel_ApiScopeTest Base class for Ansel test cases
 class Ansel_ApiTest Base class for Ansel test cases
 class Ansel_GalleryTest Unit tests for Ansel_Gallery / Ansel_Gallery_Share stuff.
 class Ansel_GetGalleriesBySlugsTest Unit test for getGalleries.
 class Ansel_GetGalleriesTest Unit test for getGalleries.
 class Ansel_ListGalleryTest Unit test for listGalleries. Basically just check that listGalleries() doesn't return any errors, and that changing sort field, direction etc...
 class Ansel_ResetDefaultImageTest Base class for Ansel test cases
 class Ansel_SlugTest Unit tests for slug stuff.
Method Summary
 boolean assertOk (mixed $result)
 void setUp ()
Methods
assertOk (line 95)

Asserts that the supplied result is not a PEAR_Error

Fails with a descriptive message if so

  • return: Whether the assertion was successful
boolean assertOk (mixed $result)
  • mixed $result: The value to check
setUp (line 14)
void setUp ()

Redefined in descendants as:

Documentation generated on Sun, 30 Jan 2011 05:08:50 +0000 by phpDocumentor 1.4.3