You are here

public function vfsStreamBlockTestCase::external in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamBlockTestCase.php \org\bovigo\vfs\vfsStreamBlockTestCase::external()

tests how external functions see this object

@test

File

vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamBlockTestCase.php, line 47

Class

vfsStreamBlockTestCase
Test for org\bovigo\vfs\vfsStreamBlock.

Namespace

org\bovigo\vfs

Code

public function external() {
  $root = vfsStream::setup('root');
  $root
    ->addChild(vfsStream::newBlock('foo'));
  $this
    ->assertEquals('block', filetype(vfsStream::url('root/foo')));
}