Giter Site home page Giter Site logo

mock-extension's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

mock-extension's Issues

Warning: Missing argument 1 for mock

I'm trying to make a service mock:

$this->mocker->mockService(
            'manager.mikrotik',
            new AtoumAdapter(
                '\MyBundle\Services\MikrotikManager'
            )
        );

I get this error:

Warning: Missing argument 1 for mock\MyBundle\Services\MikrotikManager::__construct(), called in vendor/rezzza/mock-extension/src/Adapter/AtoumAdapter.php on line 45 and defined in vendor/atoum/atoum/classes/mock/generator.php(183) : eval()'d code line 22

Where is my mistake?

Thanks in advance.
v.

Default session must be named 'symfony2'

First up, thanks for providing the service mocker.

It looks like I need to name my default session 'symfony2' to use the mocker. So, even if i'm using the symfony2 session (but named it 'default'):

    Behat\MinkExtension:
        sessions:
            default:
                symfony2: ~

I get:

We can mock services only with symfony2 driver. Please use "@mink:symfony2" tag on scenario you want to be able to mock services (LogicException)

I have to change 'default' to symfony2:

    Behat\MinkExtension:
        sessions:
            symfony2:
                symfony2: ~

Shouldn't this be checking the class of the session (and not the name?): https://github.com/rezzza/mock-extension/blob/behat3/src/Mocker.php#L63

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.