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
15 lines
444 B
PHP
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() );
|
|
}
|
|
}
|