/** * Test failure when response type falls back to an unregistered class * @depends testServiceConstruct * @expectedException \Exception */ public function testUnregisteredResponseClassFails(Swizzle $builder) { // mock an operation with a bad response class $api = array('path' => '/test/bad_class', 'operations' => array(array('type' => 'BadClass'))); $builder->addApi($api); }