Ejemplo n.º 1
0
 /**
  * Checks if provided fault name is registered as valid in this server.
  *
  * @param $fault Name of a fault class
  * @return bool
  */
 public function isRegisteredAsFaultException($fault)
 {
     return $this->debug ? true : parent::isRegisteredAsFaultException($fault);
 }
Ejemplo n.º 2
0
 /**
  * @dataProvider dataProviderForRegisterFaultException
  *
  * @param string|array $exception
  */
 public function testIsRegisteredAsFaultException($exception)
 {
     $server = new Server();
     $server->registerFaultException($exception);
     if (!is_array($exception)) {
         $this->assertTrue($server->isRegisteredAsFaultException($exception));
     } else {
         foreach ($exception as $row) {
             $this->assertTrue($server->isRegisteredAsFaultException($row));
         }
     }
 }