From d1bed9e6a04085db17fe007241a7c781d352a7b0 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Sat, 1 Jul 2017 17:40:08 +0000 Subject: [PATCH] Apply fixes from StyleCI --- tests/testing.php | 56 +++++++++++++++++++++++++++++------------------ 1 file changed, 35 insertions(+), 21 deletions(-) diff --git a/tests/testing.php b/tests/testing.php index 86f9fce84..2695ca13a 100755 --- a/tests/testing.php +++ b/tests/testing.php @@ -71,31 +71,45 @@ if ($MadelineProto === false) { $message = (getenv('TRAVIS_COMMIT') == '') ? 'I iz works always (io laborare sembre) (yo lavorar siempre) (mi labori ĉiam) (я всегда работать) (Ik werkuh altijd) (Ngimbonga ngaso sonke isikhathi ukusebenza)' : ('Travis ci tests in progress: commit '.getenv('TRAVIS_COMMIT').', job '.getenv('TRAVIS_JOB_NUMBER').', PHP version: '.getenv('TRAVIS_PHP_VERSION')); class pony extends \danog\MadelineProto\VoIP { - public function setState(int $state) { + public function setState(int $state) + { var_dump("SET STATE $state"); } - public function startOutput() { - var_dump("START READING DATA"); - } - public function startInput() { - var_dump("START WRITING DATA"); - } - public function stopOutput() { - var_dump("STOP READING DATA"); - } - public function stopInput() { - var_dump("STOP WRITING DATA"); - } - public function configureAudioOutput(int $sampleRate, int $bitsPerSample, int $channels) { - var_dump("CONFIGURE AUDIO OUTPUT: sampleRate: $sampleRate, bitsPerSample: $bitsPerSample, channels: $channels"); - } - public function configureAudioInput(int $sampleRate, int $bitsPerSample, int $channels) { - var_dump("CONFIGURE AUDIO INPUT: sampleRate: $sampleRate, bitsPerSample: $bitsPerSample, channels: $channels"); - } - public function getOutputLevel() { - return 0; + + public function startOutput() + { + var_dump('START READING DATA'); } + public function startInput() + { + var_dump('START WRITING DATA'); + } + + public function stopOutput() + { + var_dump('STOP READING DATA'); + } + + public function stopInput() + { + var_dump('STOP WRITING DATA'); + } + + public function configureAudioOutput(int $sampleRate, int $bitsPerSample, int $channels) + { + var_dump("CONFIGURE AUDIO OUTPUT: sampleRate: $sampleRate, bitsPerSample: $bitsPerSample, channels: $channels"); + } + + public function configureAudioInput(int $sampleRate, int $bitsPerSample, int $channels) + { + var_dump("CONFIGURE AUDIO INPUT: sampleRate: $sampleRate, bitsPerSample: $bitsPerSample, channels: $channels"); + } + + public function getOutputLevel() + { + return 0; + } } echo 'Serializing MadelineProto to session.madeline...'.PHP_EOL; echo 'Wrote