Skip to content

[create_framework] phpunit test error #5487

Closed
@emillosanti

Description

@emillosanti

error when running phpunit test:

Call to a member function fromRequest() on a non-object in .../src/Simplex/Framework.php on line 29

resolved by adding

protected function getFrameworkForException($exception)
{
    //...

    $matcher
        ->expects($this->once())
        ->method('getContext')
        ->will($this->returnValue($this->getMock('Symfony\Component\Routing\RequestContext')))
    ;

based on old issue :
https://github.com/fabpot/Create-Your-Framework/issues/29

http://webcache.googleusercontent.com/search?q=cache:yufENRDJeo8J:https://github.com/fabpot/Create-Your-Framework/issues/29+&cd=2&hl=en&ct=clnk

Metadata

Metadata

Assignees

No one assigned

    Labels

    hasPRA Pull Request has already been submitted for this issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions