public function indexAction() { $data = $this->getEmptyResult(); $data['results'] = Application_Model_EnvironmentPeer::getAllEnvironments(); $this->getResponse()->setBody(json_encode($data)); $this->getResponse()->setHttpResponseCode(200); }
public function testGetAllEnvironments() { $envs = Application_Model_EnvironmentPeer::getAllEnvironments(); $this->assertEquals(array($this->expected01, $this->expected02, $this->expected03, $this->expected04), $envs); }