title: Using phantomjs to make ajax calls using extjs proxy on local file
body: <p>I have a basic EXT JS store that uses a proxy to access a local json file.</p>
  
  <p>e.g.</p>
  
  <pre><code>...
  proxy: {
      type: 'ajax',
      api: {
          read: 'data/mydata.json'
      },
      reader: {
          type: 'json',
          root: 'datas',
          successProperty: 'success'
      }
  } 
  ...
  </code></pre>
  
  <p>I want to use Maven, Jasmine and PhantomJS to build and test my project with Atlassian Bamboo (my CI server).</p>
  
  <p>When I execute PhantomJS locally, like so:</p>
  
  <pre><code>$ phantomjs "c:\phantomjs-1.6.1\examples\run-jasmine.js" run-tests.html
  </code></pre>
  
  <p>I get the following output:</p>
  
  <pre><code>'waitFor()' finished in 422ms.
   4 specs, 2 failures in 0.075s
  </code></pre>
  
  <p>This is happening because PhantomJS can't manage to load local files using <em>file://</em> protocol for the EXT JS proxy. </p>
  
  <p>I'm following <a href="http://docs.sencha.com/ext-js/4-0/#!/guide/testing" rel="nofollow noreferrer">this</a> example, and am wondering whether it's possible to mock my proxies response so that I can use PhantomJS locally (on my Bamboo server) with the test html file, rather than having to host the project in a web server like Apache (an external dependency I will have to manage with Maven).</p>
  
  <p>If not, are there any other mechanisms (built into Jasmine, PhantomJS, or otherwise), that I can use to achieve this?</p>