/** * @test * * @expectedException \Payum\Core\Exception\UnsupportedApiException */ public function throwNotSupportedApiIfNotKeysGivenAsApi() { $action = new CreateChargeAction(); $action->setApi('not keys instance'); }