Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7465241
SampleTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
423 B
Referenced Files
None
Subscribers
None
SampleTest.php
View Options
<?php
namespace
Wikimedia\Tests\Stats
;
use
MediaWikiCoversValidator
;
use
PHPUnit\Framework\TestCase
;
use
Wikimedia\Stats\Sample
;
/**
* @covers \Wikimedia\Stats\Sample
*/
class
SampleTest
extends
TestCase
{
use
MediaWikiCoversValidator
;
public
function
testSample
()
{
$s
=
new
Sample
(
[
'a'
,
'b'
],
1
);
$this
->
assertEquals
(
[
'a'
,
'b'
],
$s
->
getLabelValues
()
);
$this
->
assertSame
(
1.0
,
$s
->
getValue
()
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Nov 23, 05:00 (3 d, 8 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
85/c9/5c11636fb8b207f35fd6b91a1b3a
Default Alt Text
SampleTest.php (423 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment