Skip to content
Permalink
Browse files

Refactor DBGp test runner to take a file name, rather than a string c…

…ontaining code
  • Loading branch information...
derickr committed Apr 12, 2019
1 parent 1b3a3a8 commit 776ae0f8639dca074b1f70d95f6bbac72c9b4961
Showing with 526 additions and 525 deletions.
  1. +5 −5 tests/bug00421-001.phpt
  2. +5 −5 tests/bug00421-002.phpt
  3. +5 −5 tests/bug00475.phpt
  4. +5 −5 tests/bug00494.phpt
  5. +5 −5 tests/bug00530.phpt
  6. +5 −5 tests/bug00538.phpt
  7. +5 −5 tests/bug00566-2.phpt
  8. +8 −8 tests/bug00606-2.phpt
  9. +6 −6 tests/bug00606.phpt
  10. +6 −6 tests/bug00614.phpt
  11. +6 −6 tests/bug00619.phpt
  12. +9 −9 tests/bug00622.phpt
  13. +6 −6 tests/bug00623-php7.phpt
  14. +3 −3 tests/bug00627.phpt
  15. +5 −5 tests/bug00667-php7.phpt
  16. +6 −6 tests/bug00678-2.phpt
  17. +8 −8 tests/bug00678.phpt
  18. +5 −5 tests/bug00686.phpt
  19. +5 −5 tests/bug00687.phpt
  20. +7 −7 tests/bug00688.phpt
  21. +8 −8 tests/bug00689.phpt
  22. +11 −11 tests/bug00763-php5.phpt
  23. +11 −11 tests/bug00763-php7.phpt
  24. +5 −5 tests/bug00774.phpt
  25. +6 −6 tests/bug00777.phpt
  26. +8 −8 tests/bug00778.phpt
  27. +4 −4 tests/bug00790-2.phpt
  28. +4 −4 tests/bug00790.phpt
  29. +6 −6 tests/bug00797.phpt
  30. +5 −5 tests/bug00806.phpt
  31. +5 −5 tests/bug00814.phpt
  32. +6 −6 tests/bug00815.phpt
  33. +5 −5 tests/bug00838.phpt
  34. +5 −5 tests/bug00839.phpt
  35. +5 −5 tests/bug00840.phpt
  36. +12 −12 tests/bug00842-php7-1.phpt
  37. +10 −10 tests/bug00842-php7-2.phpt
  38. +5 −5 tests/bug00842-php7-3.phpt
  39. +8 −8 tests/bug00842-php7-4.phpt
  40. +5 −5 tests/bug00864.phpt
  41. +7 −7 tests/bug00886-php7.phpt
  42. +5 −5 tests/bug00923.phpt
  43. +5 −5 tests/bug00978-1.phpt
  44. +5 −5 tests/bug00979.phpt
  45. +5 −5 tests/bug00987-005.phpt
  46. +7 −7 tests/bug00990-001.phpt
  47. +6 −6 tests/bug00990-002.phpt
  48. +6 −6 tests/bug00990-003.phpt
  49. +6 −6 tests/bug00996-001.phpt
  50. +5 −5 tests/bug00996-002.phpt
  51. +1 −1 tests/bug00998-ipv4.phpt
  52. +1 −1 tests/bug00998-ipv4_localhost.phpt
  53. +1 −1 tests/bug00998-ipv6.phpt
  54. +1 −1 tests/bug00998-ipv6_localhost.phpt
  55. +3 −3 tests/bug01007-php7.phpt
  56. +4 −4 tests/bug01025.phpt
  57. +5 −5 tests/bug01048-1.phpt
  58. +5 −5 tests/bug01059.phpt
  59. +5 −5 tests/bug01083.phpt
  60. +8 −8 tests/bug01084.phpt
  61. +4 −4 tests/bug01101.phpt
  62. +5 −5 tests/bug01104.phpt
  63. +5 −5 tests/bug01105-001.phpt
  64. +5 −5 tests/bug01105-002.phpt
  65. +5 −5 tests/bug01105-003.phpt
  66. +5 −5 tests/bug01111-001.phpt
  67. +5 −5 tests/bug01111-002.phpt
  68. +8 −8 tests/bug01165.phpt
  69. +6 −6 tests/bug01181.phpt
  70. +7 −7 tests/bug01202.phpt
  71. +7 −7 tests/bug01203.phpt
  72. +4 −4 tests/bug01218-002.phpt
  73. +7 −7 tests/bug01223.phpt
  74. +5 −5 tests/bug01272-1.phpt
  75. +5 −5 tests/bug01305.phpt
  76. +5 −5 tests/bug01312.phpt
  77. +5 −5 tests/bug01335.phpt
  78. +5 −5 tests/bug01385.phpt
  79. +6 −6 tests/bug01417.phpt
  80. +5 −5 tests/bug01449.phpt
  81. +5 −5 tests/bug01512.phpt
  82. +6 −6 tests/bug01514.phpt
  83. +5 −5 tests/bug01515-002.phpt
  84. +5 −5 tests/bug01516.phpt
  85. +6 −6 tests/bug01520.phpt
  86. +1 −0 tests/bug01532.inc
  87. +4 −5 tests/bug01532.phpt
  88. +6 −6 tests/bug01551.phpt
  89. +6 −6 tests/bug01568.phpt
  90. +4 −4 tests/bug01647.phpt
  91. +6 −6 tests/dbgp-breakpoint-error.phpt
  92. +6 −6 tests/dbgp-context-get.phpt
  93. +6 −6 tests/dbgp-property-get-constants.phpt
  94. +5 −5 tests/dbgp-property-value.phpt
  95. +6 −5 tests/dbgp/dbgpclient.php
@@ -9,7 +9,7 @@ if (in_array('SimpleXMLIterator', get_declared_classes()) == false) { echo "skip
<?php
require 'dbgp/dbgpclient.php';
$data = file_get_contents( dirname(__FILE__) . '/bug00421.inc' );
$filename = dirname(__FILE__) . '/bug00421.inc';
$commands = array(
'step_into',
@@ -21,15 +21,15 @@ $commands = array(
'detach'
);
dbgpRun( $data, $commands );
dbgpRun( $filename, $commands );
?>
--EXPECTF--
<?xml version="1.0" encoding="iso-8859-1"?>
<init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" fileuri="file:///%sxdebug-dbgp-test.php" language="PHP" xdebug:language_version="" protocol_version="1.0" appid="" idekey=""><engine version=""><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[https://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2%d by Derick Rethans]]></copyright></init>
<init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" fileuri="file:///%s00421.inc" language="PHP" xdebug:language_version="" protocol_version="1.0" appid="" idekey=""><engine version=""><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[https://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2%d by Derick Rethans]]></copyright></init>

-> step_into -i 1
<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="step_into" transaction_id="1" status="break" reason="ok"><xdebug:message filename="file:///%sxdebug-dbgp-test.php" lineno="2"></xdebug:message></response>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="step_into" transaction_id="1" status="break" reason="ok"><xdebug:message filename="file:///%s00421.inc" lineno="2"></xdebug:message></response>

-> feature_set -i 2 -n max_depth -v 2
<?xml version="1.0" encoding="iso-8859-1"?>
@@ -41,7 +41,7 @@ dbgpRun( $data, $commands );

-> run -i 4
<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="run" transaction_id="4" status="break" reason="ok"><xdebug:message filename="file:///%sxdebug-dbgp-test.php" lineno="25"></xdebug:message></response>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="run" transaction_id="4" status="break" reason="ok"><xdebug:message filename="file:///%s00421.inc" lineno="25"></xdebug:message></response>

-> context_get -i 5 -c 0
<?xml version="1.0" encoding="iso-8859-1"?>
@@ -9,7 +9,7 @@ if (in_array('SimpleXMLIterator', get_declared_classes()) == false) { echo "skip
<?php
require 'dbgp/dbgpclient.php';
$data = file_get_contents( dirname(__FILE__) . '/bug00421.inc' );
$filename = dirname(__FILE__) . '/bug00421.inc';
$commands = array(
'step_into',
@@ -20,15 +20,15 @@ $commands = array(
'detach'
);
dbgpRun( $data, $commands );
dbgpRun( $filename, $commands );
?>
--EXPECTF--
<?xml version="1.0" encoding="iso-8859-1"?>
<init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" fileuri="file:///%sxdebug-dbgp-test.php" language="PHP" xdebug:language_version="" protocol_version="1.0" appid="" idekey=""><engine version=""><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[https://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2%d by Derick Rethans]]></copyright></init>
<init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" fileuri="file:///%s" language="PHP" xdebug:language_version="" protocol_version="1.0" appid="" idekey=""><engine version=""><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[https://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2%d by Derick Rethans]]></copyright></init>

-> step_into -i 1
<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="step_into" transaction_id="1" status="break" reason="ok"><xdebug:message filename="file:///%sxdebug-dbgp-test.php" lineno="2"></xdebug:message></response>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="step_into" transaction_id="1" status="break" reason="ok"><xdebug:message filename="file:///%s" lineno="2"></xdebug:message></response>

-> feature_set -i 2 -n max_depth -v 0
<?xml version="1.0" encoding="iso-8859-1"?>
@@ -40,7 +40,7 @@ dbgpRun( $data, $commands );

-> run -i 4
<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="run" transaction_id="4" status="break" reason="ok"><xdebug:message filename="file:///%sxdebug-dbgp-test.php" lineno="25"></xdebug:message></response>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="run" transaction_id="4" status="break" reason="ok"><xdebug:message filename="file:///%s" lineno="25"></xdebug:message></response>

-> context_get -i 5 -c 0
<?xml version="1.0" encoding="iso-8859-1"?>
@@ -5,7 +5,7 @@ Test for bug #475: Property names with null chars are not sent fully to the clie
--FILE--
<?php
require 'dbgp/dbgpclient.php';
$data = file_get_contents(dirname(__FILE__) . '/bug00475.inc');
$filename = dirname(__FILE__) . '/bug00475.inc';
$commands = array(
'step_into',
@@ -15,23 +15,23 @@ $commands = array(
'detach'
);
dbgpRun( $data, $commands );
dbgpRun( $filename, $commands );
?>
--EXPECTF--
<?xml version="1.0" encoding="iso-8859-1"?>
<init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" fileuri="file:///%sxdebug-dbgp-test.php" language="PHP" xdebug:language_version="" protocol_version="1.0" appid="" idekey=""><engine version=""><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[https://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2%d by Derick Rethans]]></copyright></init>
<init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" fileuri="file:///%s" language="PHP" xdebug:language_version="" protocol_version="1.0" appid="" idekey=""><engine version=""><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[https://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2%d by Derick Rethans]]></copyright></init>

-> step_into -i 1
<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="step_into" transaction_id="1" status="break" reason="ok"><xdebug:message filename="file:///%sxdebug-dbgp-test.php" lineno="2"></xdebug:message></response>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="step_into" transaction_id="1" status="break" reason="ok"><xdebug:message filename="file:///%s" lineno="2"></xdebug:message></response>

-> breakpoint_set -i 2 -t line -n 3
<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="2" id=""></response>

-> run -i 3
<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="run" transaction_id="3" status="break" reason="ok"><xdebug:message filename="file:///%sxdebug-dbgp-test.php" lineno="3"></xdebug:message></response>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="run" transaction_id="3" status="break" reason="ok"><xdebug:message filename="file:///%s" lineno="3"></xdebug:message></response>

-> property_get -i 4 -n a
<?xml version="1.0" encoding="iso-8859-1"?>
@@ -5,7 +5,7 @@ Test for bug #494: Private attributes of parent class unavailable when inheritin
--FILE--
<?php
require 'dbgp/dbgpclient.php';
$data = file_get_contents(dirname(__FILE__) . '/bug00494.inc');
$filename = dirname(__FILE__) . '/bug00494.inc';
$commands = array(
'step_into',
@@ -15,23 +15,23 @@ $commands = array(
'detach'
);
dbgpRun( $data, $commands );
dbgpRun( $filename, $commands );
?>
--EXPECTF--
<?xml version="1.0" encoding="iso-8859-1"?>
<init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" fileuri="file:///%sxdebug-dbgp-test.php" language="PHP" xdebug:language_version="" protocol_version="1.0" appid="" idekey=""><engine version=""><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[https://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2%d by Derick Rethans]]></copyright></init>
<init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" fileuri="file:///%s" language="PHP" xdebug:language_version="" protocol_version="1.0" appid="" idekey=""><engine version=""><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[https://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2%d by Derick Rethans]]></copyright></init>

-> step_into -i 1
<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="step_into" transaction_id="1" status="break" reason="ok"><xdebug:message filename="file:///%sxdebug-dbgp-test.php" lineno="2"></xdebug:message></response>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="step_into" transaction_id="1" status="break" reason="ok"><xdebug:message filename="file:///%s" lineno="2"></xdebug:message></response>

-> breakpoint_set -i 2 -t line -n 17
<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="2" id=""></response>

-> run -i 3
<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="run" transaction_id="3" status="break" reason="ok"><xdebug:message filename="file:///%sxdebug-dbgp-test.php" lineno="17"></xdebug:message></response>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="run" transaction_id="3" status="break" reason="ok"><xdebug:message filename="file:///%s" lineno="17"></xdebug:message></response>

-> property_get -i 4 -n o
<?xml version="1.0" encoding="iso-8859-1"?>
@@ -5,7 +5,7 @@ Test for bug #530: Xdebug returns properties out of page if there are less than
--FILE--
<?php
require 'dbgp/dbgpclient.php';
$data = file_get_contents(dirname(__FILE__) . '/bug00530.inc');
$filename = dirname(__FILE__) . '/bug00530.inc';
$commands = array(
'step_into',
@@ -18,23 +18,23 @@ $commands = array(
'detach'
);
dbgpRun( $data, $commands );
dbgpRun( $filename, $commands );
?>
--EXPECTF--
<?xml version="1.0" encoding="iso-8859-1"?>
<init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" fileuri="file:///%sxdebug-dbgp-test.php" language="PHP" xdebug:language_version="" protocol_version="1.0" appid="" idekey=""><engine version=""><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[https://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2%d by Derick Rethans]]></copyright></init>
<init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" fileuri="file:///%s" language="PHP" xdebug:language_version="" protocol_version="1.0" appid="" idekey=""><engine version=""><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[https://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2%d by Derick Rethans]]></copyright></init>

-> step_into -i 1
<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="step_into" transaction_id="1" status="break" reason="ok"><xdebug:message filename="file:///%sxdebug-dbgp-test.php" lineno="2"></xdebug:message></response>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="step_into" transaction_id="1" status="break" reason="ok"><xdebug:message filename="file:///%s" lineno="2"></xdebug:message></response>

-> breakpoint_set -i 2 -t line -n 12
<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="2" id=""></response>

-> run -i 3
<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="run" transaction_id="3" status="break" reason="ok"><xdebug:message filename="file:///%sxdebug-dbgp-test.php" lineno="12"></xdebug:message></response>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="run" transaction_id="3" status="break" reason="ok"><xdebug:message filename="file:///%s" lineno="12"></xdebug:message></response>

-> property_get -i 4 -n a
<?xml version="1.0" encoding="iso-8859-1"?>
@@ -5,7 +5,7 @@ Test for bug #538: Error in watches and call stack parameter with string contain
--FILE--
<?php
require 'dbgp/dbgpclient.php';
$data = file_get_contents(dirname(__FILE__) . '/bug00538.inc');
$filename = dirname(__FILE__) . '/bug00538.inc';
$commands = array(
'step_into',
@@ -16,23 +16,23 @@ $commands = array(
'detach'
);
dbgpRun( $data, $commands );
dbgpRun( $filename, $commands );
?>
--EXPECTF--
<?xml version="1.0" encoding="iso-8859-1"?>
<init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" fileuri="file:///%sxdebug-dbgp-test.php" language="PHP" xdebug:language_version="" protocol_version="1.0" appid="" idekey=""><engine version=""><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[https://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2%d by Derick Rethans]]></copyright></init>
<init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" fileuri="file:///%s" language="PHP" xdebug:language_version="" protocol_version="1.0" appid="" idekey=""><engine version=""><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[https://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2%d by Derick Rethans]]></copyright></init>

-> step_into -i 1
<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="step_into" transaction_id="1" status="break" reason="ok"><xdebug:message filename="file:///%sxdebug-dbgp-test.php" lineno="2"></xdebug:message></response>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="step_into" transaction_id="1" status="break" reason="ok"><xdebug:message filename="file:///%s" lineno="2"></xdebug:message></response>

-> breakpoint_set -i 2 -t line -n 8
<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="2" id=""></response>

-> run -i 3
<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="run" transaction_id="3" status="break" reason="ok"><xdebug:message filename="file:///%sxdebug-dbgp-test.php" lineno="8"></xdebug:message></response>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="run" transaction_id="3" status="break" reason="ok"><xdebug:message filename="file:///%s" lineno="8"></xdebug:message></response>

-> property_get -i 4 -n param2
<?xml version="1.0" encoding="iso-8859-1"?>
@@ -9,7 +9,7 @@ xdebug.collect_assignments=0
--FILE--
<?php
require 'dbgp/dbgpclient.php';
$data = file_get_contents(dirname(__FILE__) . '/bug00566-2.inc');
$filename = dirname(__FILE__) . '/bug00566-2.inc';
$commands = array(
'step_into',
@@ -19,22 +19,22 @@ $commands = array(
'detach'
);
dbgpRun( $data, $commands, [ 'track_errors' => 'Off' ] );
dbgpRun( $filename, $commands, [ 'track_errors' => 'Off' ] );
--EXPECTF--
<?xml version="1.0" encoding="iso-8859-1"?>
<init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" fileuri="file:///%sxdebug-dbgp-test.php" language="PHP" xdebug:language_version="" protocol_version="1.0" appid="" idekey=""><engine version=""><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[https://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2%d by Derick Rethans]]></copyright></init>
<init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" fileuri="file:///%s" language="PHP" xdebug:language_version="" protocol_version="1.0" appid="" idekey=""><engine version=""><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[https://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2%d by Derick Rethans]]></copyright></init>

-> step_into -i 1
<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="step_into" transaction_id="1" status="break" reason="ok"><xdebug:message filename="file:///%sxdebug-dbgp-test.php" lineno="3"></xdebug:message></response>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="step_into" transaction_id="1" status="break" reason="ok"><xdebug:message filename="file:///%s" lineno="3"></xdebug:message></response>

-> breakpoint_set -i 2 -n 7 -t conditional -- JG1vZHVsZSA9PSB2aWV3cw==
<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="2" id=""></response>

-> run -i 3
<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="run" transaction_id="3" status="break" reason="ok"><xdebug:message filename="file:///%sxdebug-dbgp-test.php" lineno="7"></xdebug:message></response>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="run" transaction_id="3" status="break" reason="ok"><xdebug:message filename="file:///%s" lineno="7"></xdebug:message></response>

-> context_get -i 4
<?xml version="1.0" encoding="iso-8859-1"?>
Oops, something went wrong.

0 comments on commit 776ae0f

Please sign in to comment.
You can’t perform that action at this time.