Exemple #1
0
 /**
  * {@inheritdoc}
  */
 public function load(File $file, Adapter $adapter)
 {
     $file->setSize($adapter->readSize($file->getName()));
 }
Exemple #2
0
 function it_sets_size(KnowsSize $adapter, File $file)
 {
     $file->setSize(1234567890)->shouldBeCalled();
     $this->load($file, $adapter);
 }