Index: trunk/phase3/maintenance/tests/phpunit/includes/SampleTest.php |
— | — | @@ -88,8 +88,8 @@ |
89 | 89 | * See http://www.phpunit.de/manual/3.4/en/appendixes.annotations.html#appendixes.annotations.expectedException |
90 | 90 | */ |
91 | 91 | function testTitleObjectFromObject() { |
92 | | - $title = Title::newFromText(new Title("test")); |
| 92 | + $title = Title::newFromText( new Title( "test" ) ); |
93 | 93 | $this->assertEquals( "Test", $title->isLocal() ); |
94 | 94 | } |
95 | | - } |
| 95 | +} |
96 | 96 | |
Index: trunk/phase3/maintenance/tests/phpunit/includes/api/ApiTest.php |
— | — | @@ -17,6 +17,9 @@ |
18 | 18 | } |
19 | 19 | } |
20 | 20 | |
| 21 | +/** |
| 22 | + * @group destructive |
| 23 | + */ |
21 | 24 | class ApiTest extends ApiTestSetup { |
22 | 25 | |
23 | 26 | function testRequireOnlyOneParameterDefault() { |
— | — | @@ -28,8 +31,8 @@ |
29 | 32 | } |
30 | 33 | |
31 | 34 | /** |
32 | | - * @expectedException UsageException |
33 | | - */ |
| 35 | + * @expectedException UsageException |
| 36 | + */ |
34 | 37 | function testRequireOnlyOneParameterZero() { |
35 | 38 | $mock = new MockApi(); |
36 | 39 | |
— | — | @@ -39,8 +42,8 @@ |
40 | 43 | } |
41 | 44 | |
42 | 45 | /** |
43 | | - * @expectedException UsageException |
44 | | - */ |
| 46 | + * @expectedException UsageException |
| 47 | + */ |
45 | 48 | function testRequireOnlyOneParameterTrue() { |
46 | 49 | $mock = new MockApi(); |
47 | 50 | |
Index: trunk/phase3/maintenance/tests/phpunit/includes/api/ApiSetup.php |
— | — | @@ -51,9 +51,9 @@ |
52 | 52 | |
53 | 53 | public function __construct( $userName, $password, $group = '' ) { |
54 | 54 | $this->userName = $userName; |
55 | | - $this->password = $password; |
| 55 | + $this->password = $password; |
56 | 56 | |
57 | | - $this->user = User::newFromName( $this->userName ); |
| 57 | + $this->user = User::newFromName( $this->userName ); |
58 | 58 | if ( !$this->user->getID() ) { |
59 | 59 | $this->user = User::createNew( $this->userName, array( |
60 | 60 | "email" => "test@example.com", |
Index: trunk/phase3/maintenance/tests/phpunit/includes/api/ApiWatchTest.php |
— | — | @@ -2,6 +2,9 @@ |
3 | 3 | |
4 | 4 | require_once dirname( __FILE__ ) . '/ApiSetup.php'; |
5 | 5 | |
| 6 | +/** |
| 7 | + * @group destructive |
| 8 | + */ |
6 | 9 | class ApiWatchTest extends ApiTestSetup { |
7 | 10 | |
8 | 11 | function setUp() { |
Index: trunk/phase3/maintenance/tests/phpunit/suites/ExtensionsTestSuite.php |
— | — | @@ -4,7 +4,7 @@ |
5 | 5 | * See http://www.mediawiki.org/wiki/Manual:Hooks/UnitTestsList for details of how to register your tests. |
6 | 6 | */ |
7 | 7 | |
8 | | - class ExtensionsTestSuite extends PHPUnit_Framework_TestSuite { |
| 8 | +class ExtensionsTestSuite extends PHPUnit_Framework_TestSuite { |
9 | 9 | public function __construct() { |
10 | 10 | parent::__construct(); |
11 | 11 | $files = array(); |