public function getStatus()
    {
        /** @var $result CallResult */
        $result = $this->getSvn()->{'status'}($this->getRepositoryPath(), array(
            '--xml'
        ));
        $result->assertSuccess(
            sprintf('Cannot retrieve status from "%s"', $this->getRepositoryPath())
        );

        $xml    = simplexml_load_string($result->getStdOut());
        if (!$xml) {
            throw new \RuntimeException(sprintf('Cannot read status XML for "%s"', $this->getRepositoryPath()));
        }

        $status = array();
        foreach ($xml->xpath('/status/target/entry') as $entry) {
            $status[]   = array(
                'file'      => (string)$entry['path'],
                'status'    => (string)$entry->{'wc-status'}['item']
            );
        }
        return $status;
    }
public function getStatus()
    {
        /** @var $result CallResult */
        $result = $this->getSvn()->{'status'}($this->getRepositoryPath(), array(
            '--xml'
        ));
        $result->assertSuccess(
            sprintf('Cannot retrieve status from "%s"', $this->getRepositoryPath())
        );

        $xml    = simplexml_load_string($result->getStdOut());
        if (!$xml) {
            throw new \RuntimeException(sprintf('Cannot read status XML for "%s"', $this->getRepositoryPath()));
        }

        $status = array();
        foreach ($xml->xpath('/status/target/entry') as $entry) {
            $status[]   = array(
                'file'      => (string)$entry['path'],
                'status'    => (string)$entry->{'wc-status'}['item']
            );
        }
        return $status;
    }
public function getStatus ( ) { /** @var $result CallResult */ $ result = $ this -> getSvn ( ) -> { 'status' } ( $ this -> getRepositoryPath ( ) , array ( '--xml' ) ) ; $ result -> assertSuccess ( sprintf ( 'Cannot retrieve status from "%s"' , $ this -> getRepositoryPath ( ) ) ) ; $ xml = simplexml_load_string ( $ result -> getStdOut ( ) ) ; if ( ! $ xml ) { throw new \ RuntimeException ( sprintf ( 'Cannot read status XML for "%s"' , $ this -> getRepositoryPath ( ) ) ) ; } $ status = array ( ) ; foreach ( $ xml -> xpath ( '/status/target/entry' ) as $ entry ) { $ status [ ] = array ( 'file' => ( string ) $ entry [ 'path' ] , 'status' => ( string ) $ entry -> { 'wc-status' } [ 'item' ] ) ; } return $ status ; }
Returns the current status of the working directory

The returned array structure is
array(
'file'      => '...',
'status'    => '...'
)

@return  array
@throws  \RuntimeException
Returns the current status of the working directory