\JMediawikiTest
Test class for JMediawiki.
Synopsis
class JMediawikiTest
extends PHPUnit_Framework_TestCase
{
- // members
- protected JRegistry $options;
- protected JMediawikiHttp $client;
- protected JMediawiki $object;
- protected $sampleString;
- protected $errorString;
- // methods
- protected void setUp()
- public void test__GetPages()
- public void test__GetUsers()
- public void test__GetLinks()
- public void test__GetCategories()
- public void test__GetImages()
- public void test__GetSearch()
- public void testSetOption()
- public void testGetOption()
Hierarchy
Extends
Members
protected
- $client — JMediawikiHttp
- $errorString — string
- $object — JMediawiki
- $options — JRegistry
- $sampleString — string
Methods
protected
- setUp() — Sets up the fixture, for example, opens a network connection.
public
- testGetOption() — Tests the getOption method
- testSetOption() — Tests the setOption method
- test__GetCategories() — Tests the magic __get method - categories
- test__GetImages() — Tests the magic __get method - images
- test__GetLinks() — Tests the magic __get method - links
- test__GetPages() — Tests the magic __get method - pages
- test__GetSearch() — Tests the magic __get method - search
- test__GetUsers() — Tests the magic __get method - users