<?php
/**
 * @copyright (c) Kufer Software GmbH, Loisachstrasse 4, D-84453 Mühldorf
 */

class KommunikationOperationsIntegrationtest extends \PHPUnit\Framework\TestCase
{
  /**
   * @var KommunikationOperations
   */
  protected $object;

  /**
   * Sets up the fixture, for example, opens a network connection.
   * This method is called before a test is executed.
   */
  protected function setUp(): void
  {
    $this->object = new KommunikationOperations();
  }

  /**
   * Tears down the fixture, for example, closes a network connection.
   * This method is called after a test is executed.
   */
  protected function tearDown(): void
  {
  }

  /**
   * @covers KommunikationOperations::getGueltigeHandyNummer_110412
   * @test
   */
  public function getGueltigeHandyNummer_110412_deutschevalidehandynummerauslandtrue()
  {
    $handynummer = '01523 8989898';
    $land = 'D';
    $ausland = 'W';

    $expected = '015238989898';
    $result = $this->object->getGueltigeHandyNummer_110412($handynummer, $land, $ausland);
    $this->assertEquals($expected, $result, 'meine Meldung');
  }

  /**
   * @covers KommunikationOperations::getGueltigeHandyNummer_110412
   * @test
   */
  public function getGueltigeHandyNummer_110412_deutschehandynummerfalscheslandauslandtrue()
  {
    $handynummer = '01523 8989898';
    $land = 'A';
    $ausland = 'W';

    $expected = '';
    $result = $this->object->getGueltigeHandyNummer_110412($handynummer, $land, $ausland);
    $this->assertEquals($expected, $result, 'meine Meldung');
  }

  /**
   * @covers KommunikationOperations::getGueltigeHandyNummer_110412
   * @test
   */
  public function getGueltigeHandyNummer_110412_deutschehandynummerauslandfalse()
  {
    $handynummer = '01523 8989898';
    $land = 'D';
    $ausland = 'F';

    $expected = '015238989898';
    $result = $this->object->getGueltigeHandyNummer_110412($handynummer, $land, $ausland);
    $this->assertEquals($expected, $result, 'meine Meldung');
  }

  /**
   * @covers KommunikationOperations::getGueltigeHandyNummer_110412
   * @test
   */
  public function getGueltigeHandyNummer_110412_deutschehandynummerlandoesterreichauslandfalse()
  {
    $handynummer = '01523 8989898';
    $land = 'A';
    $ausland = 'F';

    $expected = '';
    $result = $this->object->getGueltigeHandyNummer_110412($handynummer, $land, $ausland);
    $this->assertEquals($expected, $result, 'meine Meldung');
  }

  /**
   * @covers KommunikationOperations::getGueltigeHandyNummer_110412
   * @test
   */
  public function getGueltigeHandyNummer_110412_handynummermitlaendervorwahlauslandtrue()
  {
    $handynummer = '+49 15238989898';
    $land = 'D';
    $ausland = 'W';

    $expected = '+4915238989898';
    $result = $this->object->getGueltigeHandyNummer_110412($handynummer, $land, $ausland);
    $this->assertEquals($expected, $result, 'meine Meldung');
  }

  /**
   * @covers KommunikationOperations::getGueltigeHandyNummer_110412
   * @test
   */
  public function getGueltigeHandyNummer_110412_handynummermitlaendervorwahllandoesterreichauslandtrue()
  {
    $handynummer = '+49 15238989898';
    $land = 'A';
    $ausland = 'W';

    $expected = '+4915238989898';
    $result = $this->object->getGueltigeHandyNummer_110412($handynummer, $land, $ausland);
    $this->assertEquals($expected, $result, 'meine Meldung');
  }

  /**
   * @covers KommunikationOperations::getGueltigeHandyNummer_110412
   * @test
   */
  public function getGueltigeHandyNummer_110412_handynummermitlaendervorwahlauslandfalse()
  {
    $handynummer = '+49 15238989898';
    $land = 'D';
    $ausland = 'F';

    $expected = '4915238989898';
    $result = $this->object->getGueltigeHandyNummer_110412($handynummer, $land, $ausland);
    $this->assertEquals($expected, $result, 'meine Meldung');
  }

  /**
   * @covers KommunikationOperations::getGueltigeHandyNummer_110412
   * @test
   */
  public function getGueltigeHandyNummer_110412_handynummermitlaendervorwahllandoesterreichauslandfalse()
  {
    $handynummer = '+49 15238989898';
    $land = 'A';
    $ausland = 'F';

    $expected = '';
    $result = $this->object->getGueltigeHandyNummer_110412($handynummer, $land, $ausland);
    $this->assertEquals($expected, $result, 'meine Meldung');
  }

  /**
   * @covers KommunikationOperations::getGueltigeHandyNummer_110412
   * @test
   */
  public function getGueltigeHandyNummer_110412_handynummermitlaendervorwahl00auslandtrue()
  {
    $handynummer = '0049 15238989898';
    $land = 'D';
    $ausland = 'W';

    $expected = '004915238989898';
    $result = $this->object->getGueltigeHandyNummer_110412($handynummer, $land, $ausland);
    $this->assertEquals($expected, $result, 'meine Meldung');
  }

  /**
   * @covers KommunikationOperations::getGueltigeHandyNummer_110412
   * @test
   */
  public function getGueltigeHandyNummer_110412_handynummermitlaendervorwahl00landfalschauslandtrue()
  {
    $handynummer = '0049 15238989898';
    $land = 'A';
    $ausland = 'W';

    $expected = '004915238989898';
    $result = $this->object->getGueltigeHandyNummer_110412($handynummer, $land, $ausland);
    $this->assertEquals($expected, $result, 'meine Meldung');
  }

  /**
   * @covers KommunikationOperations::getGueltigeHandyNummer_110412
   * @test
   */
  public function getGueltigeHandyNummer_110412_handynummermitlaendervorwahl00auslandfalse()
  {
    $handynummer = '0049 15238989898';
    $land = 'D';
    $ausland = 'F';

    $expected = '';
    $result = $this->object->getGueltigeHandyNummer_110412($handynummer, $land, $ausland);
    $this->assertEquals($expected, $result, 'meine Meldung');
  }

  /**
   * @covers KommunikationOperations::getGueltigeHandyNummer_110412
   * @test
   */
  public function getGueltigeHandyNummer_110412_handynummermitlaendervorwahl00landfalschauslandfalse()
  {
    $handynummer = '0049 15238989898';
    $land = 'A';
    $ausland = 'F';

    $expected = '';
    $result = $this->object->getGueltigeHandyNummer_110412($handynummer, $land, $ausland);
    $this->assertEquals($expected, $result, 'meine Meldung');
  }

  /**
   * @covers KommunikationOperations::getGueltigeHandyNummer_110412
   * @test
   */
  public function getGueltigeHandyNummer_110412_handynummerfalsch()
  {
    $handynummer = '789789789789';
    $land = 'D';
    $ausland = 'W';

    $expected = '';
    $result = $this->object->getGueltigeHandyNummer_110412($handynummer, $land, $ausland);
    $this->assertEquals($expected, $result, 'meine Meldung');
  }

  /**
   * @covers KommunikationOperations::getGueltigeHandyNummer_110412
   * @test
   */
  public function getGueltigeHandyNummer_110412_handynummerauslaendischauslandtrue()
  {
    $handynummer = '06504745440';
    $land = 'A';
    $ausland = 'W';

    $expected = '06504745440';
    $result = $this->object->getGueltigeHandyNummer_110412($handynummer, $land, $ausland);
    $this->assertEquals($expected, $result, 'meine Meldung');
  }

  /**
   * @covers KommunikationOperations::getGueltigeHandyNummer_110412
   * @test
   */
  public function getGueltigeHandyNummer_110412_handynummerauslaendischlandfalschauslandtrue()
  {
    $handynummer = '06504745440';
    $land = 'D';
    $ausland = 'W';

    $expected = '';
    $result = $this->object->getGueltigeHandyNummer_110412($handynummer, $land, $ausland);
    $this->assertEquals($expected, $result, 'meine Meldung');
  }

  /**
   * @covers KommunikationOperations::getGueltigeHandyNummer_110412
   * @test
   */
  public function getGueltigeHandyNummer_110412_handynummermitoesterreichischerlaendervorwahlunddeutschervorwahllandoesterreichauslandtrue()
  {
    $handynummer = '+004315238989898';
    $land = 'A';
    $ausland = 'W';

    $expected = '+004315238989898';
    $result = $this->object->getGueltigeHandyNummer_110412($handynummer, $land, $ausland);
    $this->assertEquals($expected, $result, 'meine Meldung');
  }
}
