public function putFileIntoField($file, $field) { $path = $this->root . DIRECTORY_SEPARATOR . $file; return [new Step\When("I attach the file '{$path}' to '{$field}'")]; }