// phpcs:enable
$expected = self::expandVariables( $expected );
- $this->assertEquals( $expected, $client->getHeadHtml() );
+ $this->assertSame( $expected, (string)$client->getHeadHtml() );
}
/**
. '<script async="" src="/w/load.php?lang=nl&modules=startup&only=scripts&skin=fallback&target=example"></script>';
// phpcs:enable
- $this->assertEquals( $expected, $client->getHeadHtml() );
+ $this->assertSame( $expected, (string)$client->getHeadHtml() );
}
/**
. '<script async="" src="/w/load.php?lang=nl&modules=startup&only=scripts&safemode=1&skin=fallback"></script>';
// phpcs:enable
- $this->assertEquals( $expected, $client->getHeadHtml() );
+ $this->assertSame( $expected, (string)$client->getHeadHtml() );
}
/**
. '<script async="" src="/w/load.php?lang=nl&modules=startup&only=scripts&skin=fallback"></script>';
// phpcs:enable
- $this->assertEquals( $expected, $client->getHeadHtml() );
+ $this->assertSame( $expected, (string)$client->getHeadHtml() );
}
public function testGetBodyHtml() {
. '});</script>';
// phpcs:enable
- $this->assertEquals( $expected, $client->getBodyHtml() );
+ $this->assertSame( $expected, (string)$client->getBodyHtml() );
}
public static function provideMakeLoad() {
$context->getResourceLoader()->register( self::makeSampleModules() );
$actual = ResourceLoaderClientHtml::makeLoad( $context, $modules, $type, $extraQuery, false );
$expected = self::expandVariables( $expected );
- $this->assertEquals( $expected, (string)$actual );
+ $this->assertSame( $expected, (string)$actual );
}
public function testGetDocumentAttributes() {