public function test_Should_BuildDeployerRecipeFile() { $this->mockFilesystem->shouldReceive('delete')->once(); $this->mockFilesystem->shouldReceive('put')->once(); $recipeFileBuilder = new DeployerRecipeFileBuilder($this->mockFilesystem, new DeployerFile()); $recipeFileBuilder->setRecipe($this->mockRecipeModel); $result = $recipeFileBuilder->pathInfo()->put()->getResult(); $this->assertStringMatchesFormat('recipe_%x.php', $result->getBaseName()); $this->assertStringMatchesFormat(storage_path("app/recipe_%x.php"), $result->getFullPath()); }