Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit fa6787ba86b1bf9c52bbf56df3bf5536e8a92a9e 1 parent 470ca2c
@mrook mrook authored
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.
Something went wrong with that request. Please try again.