Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7425651
PhpUnitTestFileScannerTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
802 B
Referenced Files
None
Subscribers
None
PhpUnitTestFileScannerTest.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
MediaWiki\Tests\Unit\composer\PhpUnitSplitter
;
use
MediaWiki\Composer\PhpUnitSplitter\PhpUnitTestFileScanner
;
use
MediaWikiCoversValidator
;
use
PHPUnit\Framework\TestCase
;
/**
* @license GPL-2.0-or-later
* @covers \MediaWiki\Composer\PhpUnitSplitter\PhpUnitTestFileScanner
*/
class
PhpUnitTestFileScannerTest
extends
TestCase
{
use
MediaWikiCoversValidator
;
public
function
testScanForTestFiles
()
{
$scanner
=
new
PhpUnitTestFileScanner
(
__DIR__
);
$files
=
$scanner
->
scanForFiles
();
$expected
=
[];
foreach
(
glob
(
__DIR__
.
DIRECTORY_SEPARATOR
.
"*Test.php"
)
as
$testFile
)
{
$expected
[
basename
(
$testFile
)
]
=
[
$testFile
];
}
$this
->
assertEquals
(
$expected
,
$files
,
"Expected PhpUnitSplitter test files to be found"
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Nov 22, 08:01 (19 h, 12 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
10/61/14ac07598937a6a6e4f5b4b6fb04
Default Alt Text
PhpUnitTestFileScannerTest.php (802 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment