wiki.techinc.nl/tests/phpunit/unit/includes/libs/Stats/SampleTest.php

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
361 B
PHP
Raw Normal View History

<?php
namespace Wikimedia\Tests\Stats;
use PHPUnit\Framework\TestCase;
use Wikimedia\Stats\Sample;
/**
* @covers \Wikimedia\Stats\Sample
*/
class SampleTest extends TestCase {
public function testSample() {
$s = new Sample( [ 'a', 'b' ], 1 );
$this->assertEquals( [ 'a', 'b' ], $s->getLabelValues() );
$this->assertSame( 1.0, $s->getValue() );
}
}