Fix typo in AvroFormatterTest
authorAdrian Heine <adrian.heine@wikimedia.de>
Tue, 22 Sep 2015 08:07:09 +0000 (10:07 +0200)
committerAdrian Heine <adrian.heine@wikimedia.de>
Tue, 22 Sep 2015 08:07:09 +0000 (10:07 +0200)
Also removes trailing whitespace in that file.

Change-Id: Icf30a68ea7356735f416baae8a435e0f10d5caaa

tests/phpunit/includes/debug/logger/monolog/AvroFormatterTest.php

index 4c6d25e..5cbb247 100644 (file)
@@ -25,7 +25,7 @@ use PHPUnit_Framework_Error_Notice;
 
 class AvroFormatterTest extends MediaWikiTestCase {
 
-       public function setUo() {
+       public function setUp() {
                if ( !class_exists( 'AvroStringIO' ) ) {
                        $this->markTestSkipped( 'Avro is required for the AvroFormatterTest' );
                }
@@ -33,15 +33,15 @@ class AvroFormatterTest extends MediaWikiTestCase {
        }
 
        public function testSchemaNotAvailable() {
-               $formatter = new AvroFormatter( array() );      
+               $formatter = new AvroFormatter( array() );
                $this->setExpectedException( 'PHPUnit_Framework_Error_Notice', "The schema for channel 'marty' is not available" );
                $formatter->format( array( 'channel' => 'marty' ) );
        }
 
        public function testSchemaNotAvailableReturnValue() {
-               $formatter = new AvroFormatter( array() );      
+               $formatter = new AvroFormatter( array() );
                $noticeEnabled = PHPUnit_Framework_Error_Notice::$enabled;
-               // disable conversion of notices 
+               // disable conversion of notices
                PHPUnit_Framework_Error_Notice::$enabled = false;
                // have to keep the user notice from being output
                wfSuppressWarnings();