Page MenuHomeWickedGov Phorge

PhpUnitTestListProcessorTest.php
No OneTemporary

Size
852 B
Referenced Files
None
Subscribers
None

PhpUnitTestListProcessorTest.php

<?php
declare( strict_types = 1 );
namespace MediaWiki\Tests\Unit\composer\PhpUnitSplitter;
use MediaWiki\Composer\PhpUnitSplitter\PhpUnitTestListProcessor;
use PHPUnit\Framework\TestCase;
/**
* @license GPL-2.0-or-later
* @covers \MediaWiki\Composer\PhpUnitSplitter\PhpUnitTestListProcessor
*/
class PhpUnitTestListProcessorTest extends TestCase {
private const FIXTURE_FILE = __DIR__ . "/fixtures/tests-list.xml";
public function testGetTestClasses() {
$testList = new PhpUnitTestListProcessor( self::FIXTURE_FILE );
$this->assertCount(
5, $testList->getTestClasses(), "Expected classes to be loaded"
);
$test5 = $testList->getTestClasses()[4];
$this->assertEquals(
[ [ 'MediaWiki', 'Tests', 'Unit', 'composer', 'PhpUnitSplitter' ], 'TestSuiteBuilderTest' ],
[ $test5->getNamespace(), $test5->getClassName() ]
);
}
}

File Metadata

Mime Type
text/x-php
Expires
Sun, Nov 22, 03:03 (1 d, 10 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
18/c0/ff604f9fb84650033a17ab11ba76
Default Alt Text
PhpUnitTestListProcessorTest.php (852 B)

Event Timeline