createTestTable('list_table_constraints_test'); $tableConstraints = $this->_sm->listTableConstraints('list_table_constraints_test'); $this->assertEquals(array('list_table_constraints_test_pkey'), $tableConstraints); } public function testListUsers() { $users = $this->_sm->listUsers(); $this->assertEquals(true, is_array($users)); $params = $this->_conn->getParams(); $testUser = $params['user']; $found = false; foreach ($users as $user) { if ($user['user'] == $testUser) { $found = true; } } $this->assertEquals(true, $found); } protected function getCreateExampleViewSql() { return 'SELECT usename, passwd FROM pg_user'; } }