Exemplo n.º 1
0
 public function it_exposes_the_number_of_characters_available($charactersDirectory, PHPRangeFile $file1, PHPRangeFile $file2)
 {
     $charactersDirectory->getFiles()->willReturn(new \ArrayIterator([$file1->getWrappedObject(), $file2->getWrappedObject()]));
     $file1->getTotal()->willReturn(1);
     $file2->getTotal()->willReturn(2);
     $this->count()->shouldReturn(3);
 }