Author: ts
Date: Tue Mar 4 12:42:45 2008
New Revision: 7514
Log:
- Attempt to fix tests.
Modified:
trunk/Debug/tests/data/php_stacktrace_iterator_test__testSimpleTrace.php
trunk/Debug/tests/data/xdebug_stacktrace_iterator_test__testSimpleTrace.php
trunk/Debug/tests/php_stacktrace_iterator_test.php
trunk/Debug/tests/xdebug_stacktrace_iterator_test.php
Modified:
trunk/Debug/tests/data/php_stacktrace_iterator_test__testSimpleTrace.php
==============================================================================
--- trunk/Debug/tests/data/php_stacktrace_iterator_test__testSimpleTrace.php
[iso-8859-1] (original)
+++ trunk/Debug/tests/data/php_stacktrace_iterator_test__testSimpleTrace.php
[iso-8859-1] Tue Mar 4 12:42:45 2008
@@ -14,7 +14,7 @@
),
1 =>
array (
- 'line' => 40,
+ 'line' => 38,
'function' => 'getStackTrace',
'class' => 'ezcDebugPhpStacktraceIteratorTest',
'params' =>
@@ -31,25 +31,6 @@
array (
),
),
- 3 =>
- array (
- 'line' => 449,
- 'function' => 'invoke',
- 'class' => 'ReflectionMethod',
- 'params' =>
- array (
- 0 => 'class ezcDebugPhpStacktraceIteratorTest { protected $backupGlobals
= TRUE; protected $data = array (); protected $dataName = \'\'; protected
$expectedException = NULL; protected $expectedExceptionMessage = \'\';
protected $sharedFixture = NULL; protected $name = \'testIterateTrace\';
protected $exception = NULL; protected $iniSettings = array (); protected
$locale = array (); protected $mockObjects = array () }',
- ),
- ),
- 4 =>
- array (
- 'line' => 376,
- 'function' => 'runTest',
- 'class' => 'PHPUnit_Framework_TestCase',
- 'params' =>
- array (
- ),
- ),
);
?>
Modified:
trunk/Debug/tests/data/xdebug_stacktrace_iterator_test__testSimpleTrace.php
==============================================================================
--- trunk/Debug/tests/data/xdebug_stacktrace_iterator_test__testSimpleTrace.php
[iso-8859-1] (original)
+++ trunk/Debug/tests/data/xdebug_stacktrace_iterator_test__testSimpleTrace.php
[iso-8859-1] Tue Mar 4 12:42:45 2008
@@ -16,7 +16,7 @@
array (
'function' => 'getStackTrace',
'class' => 'ezcDebugXdebugStacktraceIteratorTest',
- 'line' => 48,
+ 'line' => 46,
'params' =>
array (
0 => '\'some string\'',
@@ -32,25 +32,6 @@
array (
),
),
- 3 =>
- array (
- 'function' => 'invoke',
- 'class' => 'ReflectionMethod',
- 'line' => 449,
- 'params' =>
- array (
- 0 => 'class ezcDebugXdebugStacktraceIteratorTest { private $tempDir =
NULL; protected $backupGlobals = TRUE; protected $data = array (); protected
$dataName = \'\'; protected $expectedException = NULL; protected
$expectedExceptionMessage = \'\'; protected $sharedFixture = NULL; protected
$name = \'testIterateTrace\'; protected $exception = NULL; protected
$iniSettings = array (); protected $locale = array (); protected $mockObjects =
array () }',
- ),
- ),
- 4 =>
- array (
- 'function' => 'runTest',
- 'class' => 'PHPUnit_Framework_TestCase',
- 'line' => 376,
- 'params' =>
- array (
- ),
- ),
);
?>
Modified: trunk/Debug/tests/php_stacktrace_iterator_test.php
==============================================================================
--- trunk/Debug/tests/php_stacktrace_iterator_test.php [iso-8859-1] (original)
+++ trunk/Debug/tests/php_stacktrace_iterator_test.php [iso-8859-1] Tue Mar 4
12:42:45 2008
@@ -35,9 +35,12 @@
public function testIterateTrace()
{
+ $stackTrace = $this->getStackTrace( 'some string', array( true, 23,
null ) );
+ array_splice( $stackTrace, 3 );
+
$opts = new ezcDebugOptions();
$itr = new ezcDebugPhpStacktraceIterator(
- $this->getStackTrace( 'some string', array( true, 23, null ) ),
+ $stackTrace,
0,
$opts
);
Modified: trunk/Debug/tests/xdebug_stacktrace_iterator_test.php
==============================================================================
--- trunk/Debug/tests/xdebug_stacktrace_iterator_test.php [iso-8859-1]
(original)
+++ trunk/Debug/tests/xdebug_stacktrace_iterator_test.php [iso-8859-1] Tue Mar
4 12:42:45 2008
@@ -43,9 +43,12 @@
public function testIterateTrace()
{
+ $stackTrace = $this->getStackTrace( 'some string', array( true, 23,
null ) );
+ array_splice( $stackTrace, 0, 12 );
+
$opts = new ezcDebugOptions();
$itr = new ezcDebugXdebugStacktraceIterator(
- $this->getStackTrace( 'some string', array( true, 23, null ) ),
+ $stackTrace,
0,
$opts
);
--
svn-components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/svn-components