Merge "Title: Refactor JS/CSS page handling to be more sane"
[lhc/web/wiklou.git] / tests / phpunit / includes / search / SearchSuggestionSetTest.php
index 60559fc..54533a7 100644 (file)
@@ -19,7 +19,7 @@
  * http://www.gnu.org/copyleft/gpl.html
  */
 
-class SearchSuggestionSetTest extends \PHPUnit_Framework_TestCase {
+class SearchSuggestionSetTest extends \PHPUnit\Framework\TestCase {
        /**
         * Test that adding a new suggestion at the end
         * will keep proper score ordering
@@ -43,7 +43,7 @@ class SearchSuggestionSetTest extends \PHPUnit_Framework_TestCase {
                $this->assertEquals( 3, $set->getBestScore() );
                $this->assertEquals( 1, $suggestion->getScore() );
 
-               $scores = $set->map( function( $s ) {
+               $scores = $set->map( function ( $s ) {
                        return $s->getScore();
                } );
                $sorted = $scores;
@@ -80,7 +80,7 @@ class SearchSuggestionSetTest extends \PHPUnit_Framework_TestCase {
                $this->assertEquals( 6, $set->getBestScore() );
                $this->assertEquals( 6, $suggestion->getScore() );
 
-               $scores = $set->map( function( $s ) {
+               $scores = $set->map( function ( $s ) {
                        return $s->getScore();
                } );
                $sorted = $scores;