mirror of
https://github.com/adlawson/php-vfs.git
synced 2024-11-29 00:06:27 +00:00
Test the stripping of ://
from scheme
This commit is contained in:
parent
dcd516c4e7
commit
407af5ef5b
@ -68,4 +68,19 @@ class FileSystemTest extends UnitTestCase
|
|||||||
|
|
||||||
$this->fs->unmount();
|
$this->fs->unmount();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function testGetScheme()
|
||||||
|
{
|
||||||
|
$this->assertSame($this->scheme, $this->fs->getScheme());
|
||||||
|
}
|
||||||
|
|
||||||
|
public function testGetSchemeWithoutColonSlashSlash()
|
||||||
|
{
|
||||||
|
$factory = Mockery::mock('Vfs\Node\Factory\NodeFactoryInterface');
|
||||||
|
$factory->shouldReceive('buildDirectory')->once()->withNoArgs()->andReturn($this->root);
|
||||||
|
|
||||||
|
$fs = new FileSystem("foo://", $this->wrapperClass, $factory, $this->walker, $this->registry, $this->logger);
|
||||||
|
|
||||||
|
$this->assertSame($this->scheme, $fs->getScheme());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user