title: symfony1.x functional testing: access different applications
body: <p>I need to provide functional tests for a symfony 1.4 application. I've got 3 applications. Frontend (index.php) is empty and I do not test it. I want to test <code>api</code> and <code>backend</code> applications.</p>
  
  <p>The default code for a functional test looks like the following:</p>
  
  <pre><code>$browser-&gt;
    get('/incomes/index')-&gt;
  
    with('request')-&gt;begin()-&gt;
      isParameter('module', 'incomes')-&gt;
      isParameter('action', 'index')-&gt;
    end()-&gt;
  
    with('response')-&gt;begin()-&gt;
      isStatusCode(200)-&gt;
      checkElement('body', '!/This is a temporary page/')-&gt;
    end()
  ;
  </code></pre>
  
  <p>The problem is that it seems to access the default application (<code>frontend</code>). What can I do to access another application? I've tried things like:</p>
  
  <pre><code>$browser-&gt;
    get('/api.php/incomes/index')-&gt;
  </code></pre>
  
  <p>but all failed. I couldn't find any info about this in the <a href="http://symfony.com/legacy/doc/gentle-introduction/1_4/en/15-Unit-and-Functional-Testing#chapter_15_functional_tests" rel="nofollow">official docs</a>...</p>