diff options
Diffstat (limited to 'tests/php/Command/Signaling/AddTest.php')
-rw-r--r-- | tests/php/Command/Signaling/AddTest.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/php/Command/Signaling/AddTest.php b/tests/php/Command/Signaling/AddTest.php index c1abd4d24..d3038d24c 100644 --- a/tests/php/Command/Signaling/AddTest.php +++ b/tests/php/Command/Signaling/AddTest.php @@ -55,10 +55,10 @@ class AddTest extends TestCase { public function testServerEmptyString() { $this->input->method('getArgument') - ->willReturnCallback(function($arg) { + ->willReturnCallback(function ($arg) { if ($arg === 'server') { return ''; - } else if ($arg === 'secret') { + } elseif ($arg === 'secret') { return 'my-test-secret'; } throw new \Exception(); @@ -77,10 +77,10 @@ class AddTest extends TestCase { public function testSecretEmptyString() { $this->input->method('getArgument') - ->willReturnCallback(function($arg) { + ->willReturnCallback(function ($arg) { if ($arg === 'server') { return 'wss://signaling.test.com'; - } else if ($arg === 'secret') { + } elseif ($arg === 'secret') { return ''; } throw new \Exception(); @@ -99,10 +99,10 @@ class AddTest extends TestCase { public function testAddServerToEmptyList() { $this->input->method('getArgument') - ->willReturnCallback(function($arg) { + ->willReturnCallback(function ($arg) { if ($arg === 'server') { return 'wss://signaling.test.com'; - } else if ($arg === 'secret') { + } elseif ($arg === 'secret') { return 'my-test-secret'; } throw new \Exception(); @@ -138,10 +138,10 @@ class AddTest extends TestCase { public function testAddServerToNonEmptyList() { $this->input->method('getArgument') - ->willReturnCallback(function($arg) { + ->willReturnCallback(function ($arg) { if ($arg === 'server') { return 'wss://signaling2.test.com'; - } else if ($arg === 'secret') { + } elseif ($arg === 'secret') { return 'my-test-secret'; } throw new \Exception(); |