- @small: single class, no I/O (unit test).
- @medium: multi-class (partial or no mocks), no I/O (unit/integration test).
- @large: multi-class, I/O allowed (integration test).
Change-Id: I09317e6dd9b0ee34b7467fbffdd07957ef55dc04
+/**
+ * @large
+ * @covers CurlHttpRequest
+ */
class CurlHttpRequestTest extends MWHttpRequestTestCase {
protected static $httpEngine = 'curl';
}
class CurlHttpRequestTest extends MWHttpRequestTestCase {
protected static $httpEngine = 'curl';
}
+/**
+ * @large
+ * @covers PhpHttpRequest
+ */
class PhpHttpRequestTest extends MWHttpRequestTestCase {
protected static $httpEngine = 'php';
}
class PhpHttpRequestTest extends MWHttpRequestTestCase {
protected static $httpEngine = 'php';
}
* Integration tests to ensure that firejail actually prevents execution.
* Meant to run on vagrant, although will probably work on other setups
* as long as firejail and sudo has similar config.
* Integration tests to ensure that firejail actually prevents execution.
* Meant to run on vagrant, although will probably work on other setups
* as long as firejail and sudo has similar config.
+ * @covers FirejailCommand
*/
class FirejailCommandIntegrationTest extends PHPUnit\Framework\TestCase {
*/
class FirejailCommandIntegrationTest extends PHPUnit\Framework\TestCase {
use MediaWiki\MediaWikiServices;
/**
use MediaWiki\MediaWikiServices;
/**
* @group API
* @group Database
* @group API
* @group Database
*
* @covers ApiQueryWatchlist
*/
*
* @covers ApiQueryWatchlist
*/
*/
class HttpTest extends MediaWikiTestCase {
/**
*/
class HttpTest extends MediaWikiTestCase {
/**
* Integration test that checks import success and
* LinkCache integration.
*
* Integration test that checks import success and
* LinkCache integration.
*
+ * @covers ImportStreamSource
+ * @covers ImportReporter
* Note: the following groups are not used by PHPUnit.
* The list in ParserTestFileSuite::__construct() is used instead.
*
* Note: the following groups are not used by PHPUnit.
* The list in ParserTestFileSuite::__construct() is used instead.
*
* @group Database
* @group Parser
* @group ParserTests
* @group Database
* @group Parser
* @group ParserTests
+ * @covers FormattedRCFeed
+ * @covers RecentChange
+ * @covers JSONRCFeedFormatter
+ * @covers MachineReadableRCFeedFormatter
+ * @covers RCFeed
*/
class RCFeedIntegrationTest extends MediaWikiTestCase {
protected function setUp() {
*/
class RCFeedIntegrationTest extends MediaWikiTestCase {
protected function setUp() {
- /**
- * @covers RecentChange::notifyRCFeeds
- * @covers RecentChange::getEngine
- * @covers RCFeed::factory
- * @covers FormattedRCFeed::__construct
- * @covers FormattedRCFeed::notify
- * @covers JSONRCFeedFormatter::formatArray
- * @covers MachineReadableRCFeedFormatter::getLine
- */
public function testNotify() {
$feed = $this->getMockBuilder( RCFeedEngine::class )
->setConstructorArgs( [ [ 'formatter' => JSONRCFeedFormatter::class ] ] )
public function testNotify() {
$feed = $this->getMockBuilder( RCFeedEngine::class )
->setConstructorArgs( [ [ 'formatter' => JSONRCFeedFormatter::class ] ] )