For end-to-end tests I user SuperAgent (<a href="http:&#x2F;&#x2F;visionmedia.github.io&#x2F;superagent&#x2F;" rel="nofollow">http:&#x2F;&#x2F;visionmedia.github.io&#x2F;superagent&#x2F;</a>) or more specifically SuperTest (<a href="https:&#x2F;&#x2F;github.com&#x2F;visionmedia&#x2F;supertest" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;visionmedia&#x2F;supertest</a>) which has a suite of assertions built in.<p>It actually tests your API over HTTP, so you can tell it the url (localhost or production) of any api you wanna test. Use it in conjunction with any modern test framework and you&#x27;ll likely get the request-times&#x2F;performance metrics echo&#x27;d as part of the runner&#x27;s output.<p>It&#x27;s typically used more for javascript development, but there&#x27;s no reason that it couldn&#x27;t test an API written in PHP (or anything else), as long as you&#x27;re comfortable writing your tests in javascript.