public function it_returns_worksheet_paths(Relationships $relationships) { $relationships->getWorksheetPath(\Prophecy\Argument::type('string'))->will(function ($args) { return 'file_' . $args[0]; }); $this->getWorksheetPaths($relationships, __DIR__ . '/fixtures/workbook.xml')->shouldReturn(['Worksheet1' => 'file_rId2', 'Worksheet2' => 'file_rId3', 'Worksheet3' => 'file_rId4']); }