I am trying to use the test suite to test the output of a controller
that uses the RequestHandler to decide to hand back xml to the user by
parsing the .xml extension, but I am getting an error "XML Parsing
Error: not well-formed" when I run the test case, what is causing the
problem?

[code snippet]

class ProfilesControllerTest extends CakeTestCase {
        function startCase() {
                echo '<h1>Starting Test Case</h1>';
        }
        function endCase() {
                echo '<h1>Ending Test Case</h1>';
        }
        function startTest($method) {
                echo '<h3>Starting method ' . $method . '</h3>';
        }
        function endTest($method) {
                echo '<hr />';
        }

        function testApiIndex() {
                $result = $this->testAction('/api/
152ee23a0bedbb5dbbac0413edcc9531993db4b5/profiles.xml');
                debug($result);
        }
}

[/code snippet]
Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to