4 * @covers ResourceLoaderFilePath
6 class ResourceLoaderFilePathTest
extends MediaWikiUnitTestCase
{
8 public function testConstructor() {
9 $path = new ResourceLoaderFilePath( 'dummy/path', '/local', '/remote' );
11 $this->assertInstanceOf( ResourceLoaderFilePath
::class, $path );
14 public function testGetters() {
15 $path = new ResourceLoaderFilePath( 'dummy/path', '/local', '/remote' );
17 $this->assertSame( '/local/dummy/path', $path->getLocalPath() );
18 $this->assertSame( '/remote/dummy/path', $path->getRemotePath() );
19 $this->assertSame( '/local', $path->getLocalBasePath() );
20 $this->assertSame( '/remote', $path->getRemoteBasePath() );
21 $this->assertSame( 'dummy/path', $path->getPath() );