Browse files

Update test

git-svn-id: https://svn.php.net/repository/pear/packages/Archive_Tar/trunk@309960 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent 470ca2c commit fa6787ba86b1bf9c52bbf56df3bf5536e8a92a9e @mrook mrook committed Apr 5, 2011
Showing with 6 additions and 6 deletions.
  1. BIN tests/dirtraversal.phpt
  2. +6 −6 tests/phpt_test.php.inc
View
BIN tests/dirtraversal.phpt
Binary file not shown.
View
12 tests/phpt_test.php.inc
@@ -12,9 +12,9 @@ class PEAR_PHPTest
{
$this->_diffonly = $diffonly;
$this->_errors = array();
- PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, array(&$this, 'pearerrorCallback'));
+ PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, array($this, 'pearerrorCallback'));
if (!$noStackCatch) {
- PEAR_ErrorStack::setDefaultCallback(array(&$this, 'pearerrorstackCallback'));
+ PEAR_ErrorStack::setDefaultCallback(array($this, 'pearerrorstackCallback'));
}
}
@@ -251,12 +251,12 @@ class PEAR_PHPTest
$this->_failTest(debug_backtrace(), $message);
if (class_exists('Text_Diff')) {
echo "Diff of expecting/received:\n";
- $diff = &new Text_Diff(
+ $diff = new Text_Diff(
explode("\n", var_export($control, true)),
explode("\n", var_export($test, true)));
// Output the diff in unified format.
- $renderer = &new Text_Diff_Renderer_unified();
+ $renderer = new Text_Diff_Renderer_unified();
echo $renderer->render($diff);
if ($this->_diffonly) {
return false;
@@ -331,12 +331,12 @@ class PEAR_PHPTest
$this->_failTest(debug_backtrace(), $message);
if (class_exists('Text_Diff')) {
echo "Diff of expecting/received:\n";
- $diff = &new Text_Diff(
+ $diff = new Text_Diff(
explode("\n", var_export($control, true)),
explode("\n", var_export($test, true)));
// Output the diff in unified format.
- $renderer = &new Text_Diff_Renderer_unified();
+ $renderer = new Text_Diff_Renderer_unified();
echo $renderer->render($diff);
if ($this->_diffonly) {
return false;

0 comments on commit fa6787b

Please sign in to comment.