Debian Codegraph @

tests/phpunit/unit/includes/libs/Stats/SampleTest.php

raw symbols SCIP
1 <?php
2
3 namespace Wikimedia\Tests\Stats;
4
5 use PHPUnit\Framework\TestCase;
6 use Wikimedia\Stats\Sample;
7
8 /**
9 * @covers \Wikimedia\Stats\Sample
10 */
11 class SampleTest extends TestCase {
12 public function testSample() {
13 $s = new Sample( [ 'a', 'b' ], 1 );
14 $this->assertEquals( [ 'a', 'b' ], $s->getLabelValues() );
15 $this->assertSame( 1.0, $s->getValue() );
16 }
17 }