/**
  * @expectedException \AlfredNutileInc\Fixturizer\MissingFileException
  * @test
  */
 public function should_fail_if_folder_does_not_exist()
 {
     $this->setUpFixtureYml();
     $fixturizer = new Reader();
     $path = __DIR__ . "/foobarland/";
     $name = 'foo.yml';
     $fixturizer->setBaseFixtureStoragePath($path);
     $fixturizer->setName($name);
     $fixturizer->convertYmlToArray();
     $result = $fixturizer->getContentArray();
     $this->assertArrayHasKey('foo', $result);
 }
 /**
  * Register the service provider.
  *
  * @return void
  */
 public function register()
 {
     $this->app->bind('fixturize.writer', function ($app, $name) {
         $fixturize = new Writer(new Filesystem());
         $path = Config::get('fixturizer.fixture_storage_folder');
         $fixturize->setDestination($path . '/');
         $fixturize->setYmlParser(new Yaml());
         return $fixturize;
     });
     $this->app->bind('fixturize.reader', function ($app) {
         $fixturize = new Reader(new Filesystem());
         $fixturize->setYmlParser(new Yaml());
         return $fixturize;
     });
     $this->publishes([__DIR__ . '/../config/config.php', config_path('fixturizer.php')]);
 }