public function testGetServices() { $expectedServices = array('service1' => Phalcon\DI\Service::__set_state(array('_name' => 'service1', '_definition' => 'some-service', '_shared' => false, '_sharedInstance' => NULL)), 'service2' => Phalcon\DI\Service::__set_state(array('_name' => 'service2', '_definition' => 'some-other-service', '_shared' => false, '_sharedInstance' => NULL))); $this->_di->set('service1', 'some-service'); $this->_di->set('service2', 'some-other-service'); $this->assertEquals($this->_di->getServices(), $expectedServices); }