You are here

public function vfsStreamBlockTestCase::createWithEmptyName 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::createWithEmptyName()

tests that a blank name for a block device throws an exception @test @expectedException org\bovigo\vfs\vfsStreamException

File

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

Class

vfsStreamBlockTestCase
Test for org\bovigo\vfs\vfsStreamBlock.

Namespace

org\bovigo\vfs

Code

public function createWithEmptyName() {
  $structure = array(
    'topLevel' => array(
      'thisIsAFile' => 'file contents',
      '[]' => 'block contents',
    ),
  );
  $root = vfsStream::create($structure);
}