3ca8d887e084e2fc603a7b0016a5dc3ac313d17b
3 * Test class for MediaWiki.
4 * Generated by PHPUnit on 2011-02-06 at 11:41:23.
6 class MediaWikiTest
extends MediaWikiTestCase
{
12 protected function setUp() {
13 $context = new RequestContext
;
14 $this->object = new MediaWiki( $context );
17 protected function tearDown() {
22 * Test case insentiveness for get / set
24 public function testSetGetValKeyInsentiveness() {
26 // set with lower case key
28 $this->object->setVal( 'foobar', $value );
31 $this->object->getVal( 'foobar' ), 'SomeValue',
32 'lower case key set, getting lower case key'
35 $this->object->getVal( 'FOOBAR' ), 'SomeValue',
36 'lower case key set, getting upper case key'
39 // set with Mixed case key
40 $value = 'SomeValue2';
41 $this->object->setVal( 'FooBar', $value );
44 $this->object->getVal( 'foobar' ), 'SomeValue2',
45 'mixed case key set, getting lower case key'
48 $this->object->getVal( 'FOOBAR' ), 'SomeValue2',
49 'mixed case key set, getting upper case key'
53 public function testGetValWithDefault() {
55 $this->object->getVal( 'NonExistent' ),
56 'Non existent key return empty string'
59 $this->object->getVal( 'NonExistent2', 'Default Value' ), 'Default Value',
60 'Non existent key with default given, should give default'
65 * @todo Implement testPerformRequestForTitle().
67 public function testPerformRequestForTitle() {
68 // Remove the following lines when you implement this test.
69 $this->markTestIncomplete(
70 'This test has not been implemented yet.'
75 * @todo Implement testCheckMaxLag().
77 public function testCheckMaxLag() {
78 // Remove the following lines when you implement this test.
79 $this->markTestIncomplete(
80 'This test has not been implemented yet.'
85 * @todo Implement testCheckInitialQueries().
87 public function testCheckInitialQueries() {
88 // Remove the following lines when you implement this test.
89 $this->markTestIncomplete(
90 'This test has not been implemented yet.'
95 * @todo Implement testPreliminaryChecks().
97 public function testPreliminaryChecks() {
98 // Remove the following lines when you implement this test.
99 $this->markTestIncomplete(
100 'This test has not been implemented yet.'
105 * @todo Implement testHandleSpecialCases().
107 public function testHandleSpecialCases() {
108 // Remove the following lines when you implement this test.
109 $this->markTestIncomplete(
110 'This test has not been implemented yet.'
115 * @todo Implement testArticleFromTitle().
117 public function testArticleFromTitle() {
118 // Remove the following lines when you implement this test.
119 $this->markTestIncomplete(
120 'This test has not been implemented yet.'
125 * @todo Implement testGetAction().
127 public function testGetAction() {
128 // Remove the following lines when you implement this test.
129 $this->markTestIncomplete(
130 'This test has not been implemented yet.'
135 * @todo Implement testInitializeArticle().
137 public function testInitializeArticle() {
138 // Remove the following lines when you implement this test.
139 $this->markTestIncomplete(
140 'This test has not been implemented yet.'
145 * @todo Implement testFinalCleanup().
147 public function testFinalCleanup() {
148 // Remove the following lines when you implement this test.
149 $this->markTestIncomplete(
150 'This test has not been implemented yet.'
155 * @todo Implement testDoJobs().
157 public function testDoJobs() {
158 // Remove the following lines when you implement this test.
159 $this->markTestIncomplete(
160 'This test has not been implemented yet.'
165 * @todo Implement testRestInPeace().
167 public function testRestInPeace() {
168 // Remove the following lines when you implement this test.
169 $this->markTestIncomplete(
170 'This test has not been implemented yet.'
175 * @todo Implement testPerformAction().
177 public function testPerformAction() {
178 // Remove the following lines when you implement this test.
179 $this->markTestIncomplete(
180 'This test has not been implemented yet.'