���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home/rickpfrv/wiki.craftaro.com/tests/phpunit/suites/ParserIntegrationTest.php
���ѧ٧ѧ�
<?php use Wikimedia\Parsoid\ParserTests\Test as ParserTest; use Wikimedia\Parsoid\ParserTests\TestMode as ParserTestMode; /** * This is the TestCase subclass for running a single parser test via the * ParserTestRunner integration test system. * * Note: the following groups are not used by PHPUnit. * The list in ParserTestFileSuite::__construct() is used instead. * * @group large * @group Database * @group Parser * @group ParserTests * * @covers Parser * @covers BlockLevelPass * @covers CoreParserFunctions * @covers CoreTagHooks * @covers Sanitizer * @covers Preprocessor * @covers Preprocessor_Hash * @covers DateFormatter * @covers LinkHolderArray * @covers StripState * @covers ParserOptions * @covers ParserOutput */ class ParserIntegrationTest extends PHPUnit\Framework\TestCase { use MediaWikiCoversValidator; use MediaWikiTestCaseTrait; /** @var ParserTest */ private $ptTest; /** @var ParserTestMode */ private $ptMode; /** @var ParserTestRunner */ private $ptRunner; /** @var string|null */ private $skipMessage; public function __construct( $runner, $fileName, ParserTest $test, ParserTestMode $mode, $skipMessage = null ) { parent::__construct( 'testParse', [ "$mode" ], basename( $fileName ) . ': ' . $test->testName ); $this->ptTest = $test; $this->ptMode = $mode; $this->ptRunner = $runner; $this->skipMessage = $skipMessage; } public function testParse() { if ( $this->skipMessage !== null ) { $this->markTestSkipped( $this->skipMessage ); } $this->ptRunner->getRecorder()->setTestCase( $this ); $result = $this->ptRunner->runTest( $this->ptTest, $this->ptMode ); if ( $result === false ) { // Test intentionally skipped. $result = new ParserTestResult( $this->ptTest, $this->ptMode, "SKIP", "SKIP" ); } $this->assertEquals( $result->expected, $result->actual ); } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | ���֧ߧ֧�ѧ�ڧ� ����ѧߧڧ��: 0 |
proxy
|
phpinfo
|
���ѧ����ۧܧ�