Index: trunk/phase3/tests/phpunit/MediaWikiTestCase.php |
— | — | @@ -170,6 +170,7 @@ |
171 | 171 | 'assertInternalType' => 'assertType', |
172 | 172 | 'assertNotInternalType' => 'assertNotType', |
173 | 173 | 'assertInstanceOf' => 'assertType', |
| 174 | + 'assertEmpty' => 'assertEmpty2', |
174 | 175 | ); |
175 | 176 | |
176 | 177 | if ( method_exists( $this->suite, $func ) ) { |
— | — | @@ -181,6 +182,10 @@ |
182 | 183 | . get_class( $this ) ); |
183 | 184 | } |
184 | 185 | } |
| 186 | + |
| 187 | + static private assertEmpty2( $value, $msg ) { |
| 188 | + return $this->assertTrue( $value == '', $msg ); |
| 189 | + } |
185 | 190 | |
186 | 191 | static private function unprefixTable( $tableName ) { |
187 | 192 | global $wgDBprefix; |