As said on the doctrine ML (don't crosspost if you didn't get a reply immediately), I think the only problem here is that the zend skeleton module bootstrap (in its current state) is a mess. I suggest you to use something like https://github.com/doctrine/DoctrineORMModule/blob/master/tests/Bootstrap.php
Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ On 21 June 2013 05:04, mbneto <[email protected]> wrote: > Hi, > > I am facing one problem, when I try to use the code bellow from the unit > test > > > $this->getApplicationServiceLocator()->get('doctrine.documentmanager.odm_default'); > > I get a different result (in the form that the configuration is not > loaded/used to create the element like it does when I call from a > controller. > > $this->getServiceLocator()->get('doctrine.documentmanager.odm_default'); > > My phpunit uses the following Bootstrap ( > https://gist.github.com/bicatu/5828457) > > Any ideas? >
