function it_gets_content(KnowsContent $adapter, File $file) { $adapter->writeContent('file.png', 'the file content')->shouldBeCalled(); $this->save($file, $adapter); }