[ZF2] Made init_autoloader.php file optional, because ZF3 uses composer for autoloading #3525

Merged
merged 1 commit into from Sep 16, 2016

Conversation

Projects
None yet
3 participants
@Naktibalda
Member

Naktibalda commented Sep 16, 2016

No description provided.

@Naktibalda Naktibalda merged commit ac6d062 into 2.2 Sep 16, 2016

5 checks passed

continuous-integration/appveyor/branch AppVeyor build succeeded
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
semaphoreci The build passed on Semaphore.
Details

@Naktibalda Naktibalda deleted the zf2-init-autoloader-is-optional branch Sep 16, 2016

@bitwombat

This comment has been minimized.

Show comment
Hide comment
@bitwombat

bitwombat Jan 12, 2017

Hi @Naktibalda . Thanks so much for this contribution. When you say it's not compatible with ZF3/Doctrine2 yet, does that mean it doesn't run, or that I just can't test my ORM entities?

Hi @Naktibalda . Thanks so much for this contribution. When you say it's not compatible with ZF3/Doctrine2 yet, does that mean it doesn't run, or that I just can't test my ORM entities?

This comment has been minimized.

Show comment
Hide comment
@Naktibalda

Naktibalda Jan 12, 2017

Member

It means that you can't use Doctrine module and addServiceToContainer, grabServiceFromContainer methods in your tests.
ZF2 connector uses addPeeringServiceManager method which was removed in ServiceManager 3.0.0.
https://github.com/Codeception/Codeception/blob/2.2.7/src/Codeception/Lib/Connector/ZF2.php#L148-L152

To fix that we have to persist services between requests using some other way, but you are the first person to ask about that.

Member

Naktibalda replied Jan 12, 2017

It means that you can't use Doctrine module and addServiceToContainer, grabServiceFromContainer methods in your tests.
ZF2 connector uses addPeeringServiceManager method which was removed in ServiceManager 3.0.0.
https://github.com/Codeception/Codeception/blob/2.2.7/src/Codeception/Lib/Connector/ZF2.php#L148-L152

To fix that we have to persist services between requests using some other way, but you are the first person to ask about that.

This comment has been minimized.

Show comment
Hide comment
@bitwombat

bitwombat Jan 12, 2017

Does that mean few people add services to container because then it's not a unit test?

Does that mean few people add services to container because then it's not a unit test?

This comment has been minimized.

Show comment
Hide comment
@Naktibalda

Naktibalda Jan 12, 2017

Member

I meant that very few people are testing ZF using Codeception.

Member

Naktibalda replied Jan 12, 2017

I meant that very few people are testing ZF using Codeception.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment