-
Notifications
You must be signed in to change notification settings - Fork 283

Description
Matcher is not being created properly under PHP 5.3.2 due to a bug in which namespaced classes cannot be constructed with strings.
Expected:
$ phpspec StringCalculatorSpec.php
.
Finished in 0.009191 seconds
1 examples, 0 failures
Actual:
$ phpspec StringCalculatorSpec.php
EPHP Notice: Undefined index: file in /usr/share/php/PHPSpec/Runner/Example/Exception.php on line 92
PHP Notice: Undefined index: line in /usr/share/php/PHPSpec/Runner/Example/Exception.php on line 92
Errors:
'string calculator returns zero with no arguments' ERROR
call_user_func_array() expects parameter 1 to be a valid callback, first array member is not a valid class name or object
:
/usr/share/php/PHPSpec/Specification.php:402
/usr/share/php/PHPSpec/Specification.php:155
Finished in 0.005645 seconds
1 examples, 0 failures, 1 error