/**
  * @test
  */
 public function testReadFromFile()
 {
     $vfsRoot = vfsStream::setup('root');
     $testFile = new vfsStreamFile('test');
     $testFile->setContent($this->getTestFileContent());
     $vfsRoot->addChild($testFile);
     $this->assertEquals($this->getExpectedResultArray(), $this->fixture->readFromFile($testFile->url()));
 }
 /**
  * @test
  */
 public function testReadingFromBoilerplate()
 {
     $boilerplate = new vfsStreamFile('boilerplate.yml');
     $this->dir->addChild($boilerplate);
     $this->task->useBoilerplate($boilerplate->url());
     $this->reader->expects($this->once())->method('readFromFile')->willReturn(array('foo' => 'bar'));
     $this->expectOneSerializerCall(array('foo' => 'bar'));
     $this->task->run();
 }