wiki.techinc.nl/tests/phpunit/includes/search/SearchNearMatchResultSetTest.php
Daimona Eaytoy 2b37cfaf18 build: Bump mediawiki-codesniffer to 31.0.0
Done with `composer fix` and suppressing the rest (i.e. sniffs for
global variables, which for core should be suppressed anyway).

Additionally, add `-p` to `phpcbf`, as otherwise it just seems stuck.

Change-Id: Ide8d6cdd083655891b6d654e78440fbda81ab2bc
2020-05-30 14:56:28 +00:00

15 lines
444 B
PHP

<?php
class SearchNearMatchResultSetTest extends PHPUnit\Framework\TestCase {
/**
* @covers SearchNearMatchResultSet::__construct
* @covers SearchNearMatchResultSet::numRows
*/
public function testNumRows() {
$resultSet = new SearchNearMatchResultSet( null );
$this->assertSame( 0, $resultSet->numRows() );
$resultSet = new SearchNearMatchResultSet( Title::newMainPage() );
$this->assertSame( 1, $resultSet->numRows() );
}
}