Merge "Increase test coverage for BlockManager class"
[lhc/web/wiklou.git] / tests / phpunit / includes / resourceloader / ResourceLoaderFilePathTest.php
1 <?php
2
3 /**
4 * @covers ResourceLoaderFilePath
5 */
6 class ResourceLoaderFilePathTest extends PHPUnit\Framework\TestCase {
7
8 public function testConstructor() {
9 $path = new ResourceLoaderFilePath( 'dummy/path', '/local', '/remote' );
10
11 $this->assertInstanceOf( ResourceLoaderFilePath::class, $path );
12 }
13
14 public function testGetters() {
15 $path = new ResourceLoaderFilePath( 'dummy/path', '/local', '/remote' );
16
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() );
22 }
23 }