PolishSymfonyCommunity / Symfony2MockerExtension

Behat extension for mocking services defined Symfony2 dependency injection container
MIT License
27 stars 7 forks source link

Move to Behat 3 #6

Closed tyx closed 8 years ago

tyx commented 10 years ago

Hi,

Any plan to move this extension to behat 3 ?

I can help on this topic.

jdecool commented 9 years ago

Any news about this issue ?

tyx commented 9 years ago

Just for information, we made this : https://github.com/rezzza/mock-extension

We don't support Mockery for now, but atoum is really fine ;)

jdecool commented 9 years ago

Thanks @tyx I'm going to look at that.

No problem for atoum, it's the tool I use :)

yoanm commented 8 years ago

Up ! Any plan ? At least add a contraint on your composer.json (2.* instead of >=2.4)

jakzal commented 8 years ago

The master branch now contains a version that's compatible with Behat 3. Can you please try it out?

composer require polishsymfonycommunity/symfony2-mocker-extension:dev-master
yoanm commented 8 years ago

Thanks for your reactivity !

Unfortunately, it was for a company work. And so, to not loosing time, we have already switch to our custom implementation for behat tests, and have no time to test if it's works or not :/.

Anyway, I'll keep your project in minds. Thanks again.

lrocheWB commented 8 years ago

Hi, I get the following message:

polishsymfonycommunity/symfony2-mocker-extension dev-master requires mockery/mockery ^0.7.0 -> no matching package found

=> https://packagist.org/packages/mockery/mockery

jakzal commented 8 years ago

@lrocheWB is this the full message?

lrocheWB commented 8 years ago

Hi @jakzal, Sorry for the delay :/ Edit: Full message (tested today):

Problem 1
    - Can only install one of: mockery/mockery[0.7.2, 0.9.4].
    - Can only install one of: mockery/mockery[0.9.4, 0.7.2].
    - Can only install one of: mockery/mockery[0.7.2, 0.9.4].
    - polishsymfonycommunity/symfony2-mocker-extension dev-master requires mockery/mockery ^0.7.0 -> satisfiable by mockery/mockery[0.7.2].
    - Installation request for polishsymfonycommunity/symfony2-mocker-extension dev-master -> satisfiable by polishsymfonycommunity/symfony2-mocker-extension[dev-master].
    - Installation request for mockery/mockery == 0.9.4.0 -> satisfiable by mockery/mockery[0.9.4].

Do you reproduce ?

jakzal commented 8 years ago

@lrocheWB this should have been fixed by the latest version in master

jakzal commented 8 years ago

Just released v2.0.0.

In the meantime let me introduce you to https://github.com/docteurklein/TestDoubleBundle, which follows a less hackish approach.