public function testApiSetException_SetsException_WhenExceptionIsNotSet() { $protocol = $this->createProtocol(); $protocol->setException('exception'); $this->assertSame('exception', $protocol->getException()); }