diff --git a/tests/lib/SimpleSAML/Utils/ArraysTest.php b/tests/lib/SimpleSAML/Utils/ArraysTest.php index 014dd24b3dc2e2d1c4c984195842e4d470020547..1c1cd5787d171846e62af567db577619c000c6d8 100644 --- a/tests/lib/SimpleSAML/Utils/ArraysTest.php +++ b/tests/lib/SimpleSAML/Utils/ArraysTest.php @@ -40,10 +40,14 @@ class Utils_ArraysTest extends PHPUnit_Framework_TestCase public function testTranspose() { // check bad arrays - $this->assertFalse(SimpleSAML\Utils\Arrays::transpose(array('1', '2', '3')), - 'Invalid two-dimensional array was accepted'); - $this->assertFalse(SimpleSAML\Utils\Arrays::transpose(array('1' => 0, '2' => '0', '3' => array(0))), - 'Invalid elements on a two-dimensional array were accepted'); + $this->assertFalse( + SimpleSAML\Utils\Arrays::transpose(array('1', '2', '3')), + 'Invalid two-dimensional array was accepted' + ); + $this->assertFalse( + SimpleSAML\Utils\Arrays::transpose(array('1' => 0, '2' => '0', '3' => array(0))), + 'Invalid elements on a two-dimensional array were accepted' + ); // check array with numerical keys $array = array( @@ -64,8 +68,11 @@ class Utils_ArraysTest extends PHPUnit_Framework_TestCase 'key2' => 'value2' ) ); - $this->assertEquals($transposed, SimpleSAML\Utils\Arrays::transpose($array), - 'Unexpected result of transpose()'); + $this->assertEquals( + $transposed, + SimpleSAML\Utils\Arrays::transpose($array), + 'Unexpected result of transpose()' + ); // check array with string keys $array = array( @@ -86,8 +93,11 @@ class Utils_ArraysTest extends PHPUnit_Framework_TestCase 'key2' => 'value2' ) ); - $this->assertEquals($transposed, SimpleSAML\Utils\Arrays::transpose($array), - 'Unexpected result of transpose()'); + $this->assertEquals( + $transposed, + SimpleSAML\Utils\Arrays::transpose($array), + 'Unexpected result of transpose()' + ); // check array with no keys in common between sub arrays $array = array( @@ -110,7 +120,10 @@ class Utils_ArraysTest extends PHPUnit_Framework_TestCase 'key2' => 'value2' ) ); - $this->assertEquals($transposed, SimpleSAML\Utils\Arrays::transpose($array), - 'Unexpected result of transpose()'); + $this->assertEquals( + $transposed, + SimpleSAML\Utils\Arrays::transpose($array), + 'Unexpected result of transpose()' + ); } -} \ No newline at end of file +}