Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[bug] matcher is not valid callback #17

@ghost

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions