Skip to content

Instantly share code, notes, and snippets.

@StanAngeloff
Created September 23, 2015 15:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save StanAngeloff/559cb48a9f28484ae320 to your computer and use it in GitHub Desktop.
Save StanAngeloff/559cb48a9f28484ae320 to your computer and use it in GitHub Desktop.
<?php
# snip...
/**
* @test
*/
public function distributeCreatesANewFile()
{
$this->distributionRepository->findOneBySegmentName(Argument::exact('Segment 1'))
->shouldBeCalled()
->willReturn($this->distribution);
$this->service->distribute('Segment 1');
$this->assertDirectoryStructure([
'root' => [
'var' => [
'distribution' => [
'Segment 1.csv' => '',
],
],
],
]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment