Localisation updates from https://translatewiki.net.
[mediawiki.git] / tests / phpunit / includes / search / SearchNearMatchResultSetTest.php
blob8422a68e450c7eabcf6170863d0d79eebe9acc02
1 <?php
3 use MediaWiki\Title\Title;
5 class SearchNearMatchResultSetTest extends PHPUnit\Framework\TestCase {
6 use MediaWikiCoversValidator;
8 /**
9 * @covers \SearchNearMatchResultSet::__construct
10 * @covers \SearchNearMatchResultSet::numRows
12 public function testNumRows() {
13 $resultSet = new SearchNearMatchResultSet( null );
14 $this->assertSame( 0, $resultSet->numRows() );
16 $resultSet = new SearchNearMatchResultSet( Title::newMainPage() );
17 $this->assertSame( 1, $resultSet->numRows() );