示例#1
0
    public function testGetsGroupNames()
    {
        $adapter = new Adapter();
        $value = <<<RPC
<?xml version='1.0'?>
<methodResponse>
<params>
<param>
<value><array><data>
<value><string>dev</string></value>
<value><string>first</string></value>
</data></array></value>
</param>
</params>
</methodResponse>
RPC;
        $expected = array('dev', 'first');
        $adapter->setHttpClient($this->mockBrowser($value));
        $this->assertEquals($expected, $adapter->getGroupNames());
    }