/** * @return void */ public function testGetNewNameOverwriteWithExistingFile() { $filter = new Zend_Filter_File_Rename(array('source' => $this->_oldFile, 'target' => $this->_newFile, 'overwrite' => true)); copy($this->_oldFile, $this->_newFile); $this->assertEquals(array(0 => array('source' => $this->_oldFile, 'target' => $this->_newFile, 'overwrite' => true)), $filter->getFile()); $this->assertEquals($this->_newFile, $filter->getNewName($this->_oldFile)); }