سلام و خسته نباشید برای اجرای تست phpunit با خطای زیر روبرو شدم بزرگواری کنید بهم کمک کنید باتشکر
PHP: syntax error, unexpected '{' in C:\xampp\php\php.ini on line 2032
PHP Warning: Failed loading Zend extension 'path/to/where/you/installed/xdebug.so' (tried: \xampp\php\ext\path/to/where/you/installed/xdebug.so (The specified module could not be found), \xampp\php\ext\php_path/to/where/you/installed/xdebug.so.dll (The specified module could not be found)) in Unknown on line 0
Warning: Failed loading Zend extension 'path/to/where/you/installed/xdebug.so' (tried: \xampp\php\ext\path/to/where/you/installed/xdebug.so (The specified module could not be found), \xampp\php\ext\php_path/to/where/you/installed/xdebug.so.dll (The specified module
could not be found)) in Unknown on line 0
Xdebug: [Step Debug] Time-out connecting to debugging client, waited: 200 ms. Tried: localhost:9000 (through xdebug.client_host/xdebug.client_port) :-(
PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in C:\xampp\php\pear\PHPUnit\TextUI\Command.php on line 277
PHP Stack trace:
PHP 1. {main}() C:\xampp\php\phpunit:0
PHP 2. {closure:C:\xampp\php\pear\PHPUnit\Autoload.php:71-207}($class = 'PHPUnit_TextUI_Command') C:\xampp\php\phpunit:46
Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in C:\xampp\php\pear\PHPUnit\TextUI\Command.php on line 277
Call Stack:
0.4122 393640 1. {main}() C:\xampp\php\phpunit:0
0.8850 495512 2. {closure:C:\xampp\php\pear\PHPUnit\Autoload.php:71-207}($class = 'PHPUnit_TextUI_Command') C:\xampp\php\phpunit:46
PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in C:\xampp\php\pear\PHPUnit\TextUI\Command.php on line 285
PHP Stack trace:
PHP 1. {main}() C:\xampp\php\phpunit:0
PHP 2. {closure:C:\xampp\php\pear\PHPUnit\Autoload.php:71-207}($class = 'PHPUnit_TextUI_Command') C:\xampp\php\phpunit:46
Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in C:\xampp\php\pear\PHPUnit\TextUI\Command.php on line 285
Call Stack:
0.4122 393640 1. {main}() C:\xampp\php\phpunit:0
0.8850 495512 2. {closure:C:\xampp\php\pear\PHPUnit\Autoload.php:71-207}($class = 'PHPUnit_TextUI_Command') C:\xampp\php\phpunit:46
PHP Fatal error: Uncaught Error: Call to undefined function each() in C:\xampp\php\pear\PHPUnit\Util\Getopt.php:80
Stack trace:
#0 C:\xampp\php\pear\PHPUnit\TextUI\Command.php(242): PHPUnit_Util_Getopt::getopt(Array, 'd:c:hv', Array)
#1 C:\xampp\php\pear\PHPUnit\TextUI\Command.php(138): PHPUnit_TextUI_Command->handleArguments(Array)
#2 C:\xampp\php\pear\PHPUnit\TextUI\Command.php(129): PHPUnit_TextUI_Command->run(Array, true)
#3 C:\xampp\php\phpunit(46): PHPUnit_TextUI_Command::main()
#4 {main}
thrown in C:\xampp\php\pear\PHPUnit\Util\Getopt.php on line 80
Fatal error: Uncaught Error: Call to undefined function each() in C:\xampp\php\pear\PHPUnit\Util\Getopt.php on line 80
Error: Call to undefined function each() in C:\xampp\php\pear\PHPUnit\Util\Getopt.php on line 80
Call Stack:
0.4122 393640 1. {main}() C:\xampp\php\phpunit:0
0.9686 583392 2. PHPUnit_TextUI_Command::main($exit = ???) C:\xampp\php\phpunit:46
0.9686 583504 3. PHPUnit_TextUI_Command->run($argv = [0 => '\\xampp\\php\\phpunit'], $exit = TRUE) C:\xampp\php\pear\PHPUnit\TextUI\Command.php:129
0.9686 583504 4. PHPUnit_TextUI_Command->handleArguments($argv = [0 => '\\xampp\\php\\phpunit']) C:\xampp\php\pear\PHPUnit\TextUI\Command.php:138
1.0216 609952 5. PHPUnit_Util_Getopt::getopt($args = [0 => '\\xampp\\php\\phpunit'], $short_options = 'd:c:hv', $long_options = [0 => 'colors', 1 => 'bootstrap=', 2 => 'configuration=', 3 => 'coverage-html=', 4 => 'coverage-clover=', 5 => 'coverage-php=',
6 => 'coverage-text==', 7 => 'debug', 8 => 'exclude-group=', 9 => 'filter=', 10 => 'testsuite=', 11 => 'group=', 12 => 'help', 13 =>
'include-path=', 14 => 'list-groups', 15 => 'loader=', 16 => 'log-json=', 17 => 'log-junit=', 18 => 'log-tap=', 19 => 'process-isolation', 20 => 'repeat=', 21 => 'stderr', 22 => 'stop-on-error', 23 => 'stop-on-failure', 24 => 'stop-on-incomplete', 25 => 'stop-on-skipped', 26 => 'strict', 27 => 'tap', 28 => 'testdox', 29 => 'testdox-html=', 30 => 'testdox-text=', 31 => 'test-suffix=', 32 => 'no-configuration', 33 => 'no-globals-backup', 34 => 'printer=', 35 => 'static-backup', 36 => 'verbose', 37 => 'version']) C:\xampp\php\pear\PHPUnit\TextUI\Command.php:242
سلام و احترام
ظاهرا یه خطایی داخل فایل php.ini تون دارید خط ۲۰۳۲ که { اضافه هستش، لطفا یه بررسی کنید و اطلاع بدید