cvs: pear-core /tests/PEAR_Installer test_install_binary.phpt

From: Date: Thu, 21 Oct 2004 15:09:57 +0000
Subject: cvs: pear-core /tests/PEAR_Installer test_install_binary.phpt
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-1094@lists.php.net to get a copy of this message
cellog Thu Oct 21 11:09:57 2004 EDT Modified files: /pear-core/tests/PEAR_Installer test_install_binary.phpt Log: make the test work on windows http://cvs.php.net/diff.php/pear-core/tests/PEAR_Installer/test_install_binary.phpt?r1=1.1&r2=1.2&ty=u Index: pear-core/tests/PEAR_Installer/test_install_binary.phpt diff -u pear-core/tests/PEAR_Installer/test_install_binary.phpt:1.1 pear-core/tests/PEAR_Installer/test_install_binary.phpt:1.2 --- pear-core/tests/PEAR_Installer/test_install_binary.phpt:1.1 Thu Oct 21 01:09:37 2004 +++ pear-core/tests/PEAR_Installer/test_install_binary.phpt Thu Oct 21 11:09:57 2004 @@ -104,6 +104,7 @@ $installer->setDownloadedPackages($params); $package->installBinary($installer); $phpunit->assertNoErrors('install'); +$tampered = $fakelog->getLog(); $phpunit->assertEquals(array ( 0 => array ( @@ -143,7 +144,7 @@ 7 => array ( 0 => 3, - 1 => '+ cp ' . $last_dl->getDownloadDir() . DIRECTORY_SEPARATOR . 'test-1.1' . + 1 => '+ cp ' . str_replace('\\\\', '\\', $last_dl->getDownloadDir()) . DIRECTORY_SEPARATOR . 'test-1.1' . DIRECTORY_SEPARATOR . 'foo.dll ' . $ext_dir . DIRECTORY_SEPARATOR . '.tmpfoo.dll', ), 8 => @@ -184,7 +185,7 @@ 0 => 0, 1 => 'Download and install of binary extension "channel://pear.php.net/test" successful', ), -), $fakelog->getLog(), 'install'); +), $tampered, 'install'); $phpunit->assertEquals(array ( 0 => array (

« previous php.pear.core (#1094) next »