@@ -30,18 +30,18 @@ discard block |
||
| 30 | 30 | public function acceptsSucceedsProvider() |
| 31 | 31 | { |
| 32 | 32 | return array( |
| 33 | - array(new Exception, new Exception), |
|
| 34 | - array(new RuntimeException, new RuntimeException), |
|
| 35 | - array(new Exception, new RuntimeException) |
|
| 33 | + array(new Exception, new Exception), |
|
| 34 | + array(new RuntimeException, new RuntimeException), |
|
| 35 | + array(new Exception, new RuntimeException) |
|
| 36 | 36 | ); |
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | public function acceptsFailsProvider() |
| 40 | 40 | { |
| 41 | 41 | return array( |
| 42 | - array(new Exception, null), |
|
| 43 | - array(null, new Exception), |
|
| 44 | - array(null, null) |
|
| 42 | + array(new Exception, null), |
|
| 43 | + array(null, new Exception), |
|
| 44 | + array(null, null) |
|
| 45 | 45 | ); |
| 46 | 46 | } |
| 47 | 47 | |
@@ -54,10 +54,10 @@ discard block |
||
| 54 | 54 | $exception4 = new RunTimeException('Error', 100); |
| 55 | 55 | |
| 56 | 56 | return array( |
| 57 | - array($exception1, $exception1), |
|
| 58 | - array($exception1, $exception2), |
|
| 59 | - array($exception3, $exception3), |
|
| 60 | - array($exception3, $exception4) |
|
| 57 | + array($exception1, $exception1), |
|
| 58 | + array($exception1, $exception2), |
|
| 59 | + array($exception3, $exception3), |
|
| 60 | + array($exception3, $exception4) |
|
| 61 | 61 | ); |
| 62 | 62 | } |
| 63 | 63 | |
@@ -74,11 +74,11 @@ discard block |
||
| 74 | 74 | $exception5 = new RunTimeException('Error', 101); |
| 75 | 75 | |
| 76 | 76 | return array( |
| 77 | - array($exception1, $exception2, $equalMessage), |
|
| 78 | - array($exception1, $exception3, $equalMessage), |
|
| 79 | - array($exception1, $exception4, $typeMessage), |
|
| 80 | - array($exception2, $exception3, $equalMessage), |
|
| 81 | - array($exception4, $exception5, $equalMessage) |
|
| 77 | + array($exception1, $exception2, $equalMessage), |
|
| 78 | + array($exception1, $exception3, $equalMessage), |
|
| 79 | + array($exception1, $exception4, $typeMessage), |
|
| 80 | + array($exception2, $exception3, $equalMessage), |
|
| 81 | + array($exception4, $exception5, $equalMessage) |
|
| 82 | 82 | ); |
| 83 | 83 | } |
| 84 | 84 | |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | public function testAcceptsSucceeds($expected, $actual) |
| 90 | 90 | { |
| 91 | 91 | $this->assertTrue( |
| 92 | - $this->comparator->accepts($expected, $actual) |
|
| 92 | + $this->comparator->accepts($expected, $actual) |
|
| 93 | 93 | ); |
| 94 | 94 | } |
| 95 | 95 | |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | public function testAcceptsFails($expected, $actual) |
| 101 | 101 | { |
| 102 | 102 | $this->assertFalse( |
| 103 | - $this->comparator->accepts($expected, $actual) |
|
| 103 | + $this->comparator->accepts($expected, $actual) |
|
| 104 | 104 | ); |
| 105 | 105 | } |
| 106 | 106 | |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | public function testAssertEqualsFails($expected, $actual, $message) |
| 130 | 130 | { |
| 131 | 131 | $this->setExpectedException( |
| 132 | - 'SebastianBergmann\\Comparator\\ComparisonFailure', $message |
|
| 132 | + 'SebastianBergmann\\Comparator\\ComparisonFailure', $message |
|
| 133 | 133 | ); |
| 134 | 134 | $this->comparator->assertEquals($expected, $actual); |
| 135 | 135 | } |
@@ -30,9 +30,9 @@ discard block |
||
| 30 | 30 | $stdmock = $this->getMock('stdClass'); |
| 31 | 31 | |
| 32 | 32 | return array( |
| 33 | - array($testmock, $testmock), |
|
| 34 | - array($stdmock, $stdmock), |
|
| 35 | - array($stdmock, $testmock) |
|
| 33 | + array($testmock, $testmock), |
|
| 34 | + array($stdmock, $stdmock), |
|
| 35 | + array($stdmock, $testmock) |
|
| 36 | 36 | ); |
| 37 | 37 | } |
| 38 | 38 | |
@@ -41,9 +41,9 @@ discard block |
||
| 41 | 41 | $stdmock = $this->getMock('stdClass'); |
| 42 | 42 | |
| 43 | 43 | return array( |
| 44 | - array($stdmock, null), |
|
| 45 | - array(null, $stdmock), |
|
| 46 | - array(null, null) |
|
| 44 | + array($stdmock, null), |
|
| 45 | + array(null, $stdmock), |
|
| 46 | + array(null, null) |
|
| 47 | 47 | ); |
| 48 | 48 | } |
| 49 | 49 | |
@@ -61,15 +61,15 @@ discard block |
||
| 61 | 61 | $object2 = $this->getMock('SebastianBergmann\\Comparator\\SampleClass', null, array(4, 8, 15)); |
| 62 | 62 | |
| 63 | 63 | return array( |
| 64 | - array($object1, $object1), |
|
| 65 | - array($object1, $object2), |
|
| 66 | - array($book1, $book1), |
|
| 67 | - array($book1, $book2), |
|
| 68 | - array( |
|
| 64 | + array($object1, $object1), |
|
| 65 | + array($object1, $object2), |
|
| 66 | + array($book1, $book1), |
|
| 67 | + array($book1, $book2), |
|
| 68 | + array( |
|
| 69 | 69 | $this->getMock('SebastianBergmann\\Comparator\\Struct', null, array(2.3)), |
| 70 | 70 | $this->getMock('SebastianBergmann\\Comparator\\Struct', null, array(2.5)), |
| 71 | 71 | 0.5 |
| 72 | - ) |
|
| 72 | + ) |
|
| 73 | 73 | ); |
| 74 | 74 | } |
| 75 | 75 | |
@@ -95,20 +95,20 @@ discard block |
||
| 95 | 95 | $object2 = $this->getMock('SebastianBergmann\\Comparator\\SampleClass', null, array(16, 23, 42)); |
| 96 | 96 | |
| 97 | 97 | return array( |
| 98 | - array( |
|
| 98 | + array( |
|
| 99 | 99 | $this->getMock('SebastianBergmann\\Comparator\\SampleClass', null, array(4, 8, 15)), |
| 100 | 100 | $this->getMock('SebastianBergmann\\Comparator\\SampleClass', null, array(16, 23, 42)), |
| 101 | 101 | $equalMessage |
| 102 | - ), |
|
| 103 | - array($object1, $object2, $equalMessage), |
|
| 104 | - array($book1, $book2, $equalMessage), |
|
| 105 | - array($book3, $book4, $typeMessage), |
|
| 106 | - array( |
|
| 102 | + ), |
|
| 103 | + array($object1, $object2, $equalMessage), |
|
| 104 | + array($book1, $book2, $equalMessage), |
|
| 105 | + array($book3, $book4, $typeMessage), |
|
| 106 | + array( |
|
| 107 | 107 | $this->getMock('SebastianBergmann\\Comparator\\Struct', null, array(2.3)), |
| 108 | 108 | $this->getMock('SebastianBergmann\\Comparator\\Struct', null, array(4.2)), |
| 109 | 109 | $equalMessage, |
| 110 | 110 | 0.5 |
| 111 | - ) |
|
| 111 | + ) |
|
| 112 | 112 | ); |
| 113 | 113 | } |
| 114 | 114 | |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | public function testAcceptsSucceeds($expected, $actual) |
| 120 | 120 | { |
| 121 | 121 | $this->assertTrue( |
| 122 | - $this->comparator->accepts($expected, $actual) |
|
| 122 | + $this->comparator->accepts($expected, $actual) |
|
| 123 | 123 | ); |
| 124 | 124 | } |
| 125 | 125 | |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | public function testAcceptsFails($expected, $actual) |
| 131 | 131 | { |
| 132 | 132 | $this->assertFalse( |
| 133 | - $this->comparator->accepts($expected, $actual) |
|
| 133 | + $this->comparator->accepts($expected, $actual) |
|
| 134 | 134 | ); |
| 135 | 135 | } |
| 136 | 136 | |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | public function testAssertEqualsFails($expected, $actual, $message, $delta = 0.0) |
| 160 | 160 | { |
| 161 | 161 | $this->setExpectedException( |
| 162 | - 'SebastianBergmann\\Comparator\\ComparisonFailure', $message |
|
| 162 | + 'SebastianBergmann\\Comparator\\ComparisonFailure', $message |
|
| 163 | 163 | ); |
| 164 | 164 | $this->comparator->assertEquals($expected, $actual, $delta); |
| 165 | 165 | } |
@@ -26,45 +26,45 @@ discard block |
||
| 26 | 26 | public function acceptsSucceedsProvider() |
| 27 | 27 | { |
| 28 | 28 | return array( |
| 29 | - array(5, 10), |
|
| 30 | - array(8, '0'), |
|
| 31 | - array('10', 0), |
|
| 32 | - array(0x74c3b00c, 42), |
|
| 33 | - array(0755, 0777) |
|
| 29 | + array(5, 10), |
|
| 30 | + array(8, '0'), |
|
| 31 | + array('10', 0), |
|
| 32 | + array(0x74c3b00c, 42), |
|
| 33 | + array(0755, 0777) |
|
| 34 | 34 | ); |
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | public function acceptsFailsProvider() |
| 38 | 38 | { |
| 39 | 39 | return array( |
| 40 | - array('5', '10'), |
|
| 41 | - array(8, 5.0), |
|
| 42 | - array(5.0, 8), |
|
| 43 | - array(10, null), |
|
| 44 | - array(false, 12) |
|
| 40 | + array('5', '10'), |
|
| 41 | + array(8, 5.0), |
|
| 42 | + array(5.0, 8), |
|
| 43 | + array(10, null), |
|
| 44 | + array(false, 12) |
|
| 45 | 45 | ); |
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | public function assertEqualsSucceedsProvider() |
| 49 | 49 | { |
| 50 | 50 | return array( |
| 51 | - array(1337, 1337), |
|
| 52 | - array('1337', 1337), |
|
| 53 | - array(0x539, 1337), |
|
| 54 | - array(02471, 1337), |
|
| 55 | - array(1337, 1338, 1), |
|
| 56 | - array('1337', 1340, 5), |
|
| 51 | + array(1337, 1337), |
|
| 52 | + array('1337', 1337), |
|
| 53 | + array(0x539, 1337), |
|
| 54 | + array(02471, 1337), |
|
| 55 | + array(1337, 1338, 1), |
|
| 56 | + array('1337', 1340, 5), |
|
| 57 | 57 | ); |
| 58 | 58 | } |
| 59 | 59 | |
| 60 | 60 | public function assertEqualsFailsProvider() |
| 61 | 61 | { |
| 62 | 62 | return array( |
| 63 | - array(1337, 1338), |
|
| 64 | - array('1338', 1337), |
|
| 65 | - array(0x539, 1338), |
|
| 66 | - array(1337, 1339, 1), |
|
| 67 | - array('1337', 1340, 2), |
|
| 63 | + array(1337, 1338), |
|
| 64 | + array('1338', 1337), |
|
| 65 | + array(0x539, 1338), |
|
| 66 | + array(1337, 1339, 1), |
|
| 67 | + array('1337', 1340, 2), |
|
| 68 | 68 | ); |
| 69 | 69 | } |
| 70 | 70 | |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | public function testAcceptsSucceeds($expected, $actual) |
| 76 | 76 | { |
| 77 | 77 | $this->assertTrue( |
| 78 | - $this->comparator->accepts($expected, $actual) |
|
| 78 | + $this->comparator->accepts($expected, $actual) |
|
| 79 | 79 | ); |
| 80 | 80 | } |
| 81 | 81 | |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | public function testAcceptsFails($expected, $actual) |
| 87 | 87 | { |
| 88 | 88 | $this->assertFalse( |
| 89 | - $this->comparator->accepts($expected, $actual) |
|
| 89 | + $this->comparator->accepts($expected, $actual) |
|
| 90 | 90 | ); |
| 91 | 91 | } |
| 92 | 92 | |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | public function testAssertEqualsFails($expected, $actual, $delta = 0.0) |
| 116 | 116 | { |
| 117 | 117 | $this->setExpectedException( |
| 118 | - 'SebastianBergmann\\Comparator\\ComparisonFailure', 'matches expected' |
|
| 118 | + 'SebastianBergmann\\Comparator\\ComparisonFailure', 'matches expected' |
|
| 119 | 119 | ); |
| 120 | 120 | $this->comparator->assertEquals($expected, $actual, $delta); |
| 121 | 121 | } |
@@ -29,18 +29,18 @@ discard block |
||
| 29 | 29 | public function acceptsSucceedsProvider() |
| 30 | 30 | { |
| 31 | 31 | return array( |
| 32 | - array(new TestClass, new TestClass), |
|
| 33 | - array(new stdClass, new stdClass), |
|
| 34 | - array(new stdClass, new TestClass) |
|
| 32 | + array(new TestClass, new TestClass), |
|
| 33 | + array(new stdClass, new stdClass), |
|
| 34 | + array(new stdClass, new TestClass) |
|
| 35 | 35 | ); |
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | public function acceptsFailsProvider() |
| 39 | 39 | { |
| 40 | 40 | return array( |
| 41 | - array(new stdClass, null), |
|
| 42 | - array(null, new stdClass), |
|
| 43 | - array(null, null) |
|
| 41 | + array(new stdClass, null), |
|
| 42 | + array(null, new stdClass), |
|
| 43 | + array(null, null) |
|
| 44 | 44 | ); |
| 45 | 45 | } |
| 46 | 46 | |
@@ -58,11 +58,11 @@ discard block |
||
| 58 | 58 | $object2 = new SampleClass(4, 8, 15); |
| 59 | 59 | |
| 60 | 60 | return array( |
| 61 | - array($object1, $object1), |
|
| 62 | - array($object1, $object2), |
|
| 63 | - array($book1, $book1), |
|
| 64 | - array($book1, $book2), |
|
| 65 | - array(new Struct(2.3), new Struct(2.5), 0.5) |
|
| 61 | + array($object1, $object1), |
|
| 62 | + array($object1, $object2), |
|
| 63 | + array($book1, $book1), |
|
| 64 | + array($book1, $book2), |
|
| 65 | + array(new Struct(2.3), new Struct(2.5), 0.5) |
|
| 66 | 66 | ); |
| 67 | 67 | } |
| 68 | 68 | |
@@ -88,11 +88,11 @@ discard block |
||
| 88 | 88 | $object2 = new SampleClass(16, 23, 42); |
| 89 | 89 | |
| 90 | 90 | return array( |
| 91 | - array(new SampleClass(4, 8, 15), new SampleClass(16, 23, 42), $equalMessage), |
|
| 92 | - array($object1, $object2, $equalMessage), |
|
| 93 | - array($book1, $book2, $equalMessage), |
|
| 94 | - array($book3, $book4, $typeMessage), |
|
| 95 | - array(new Struct(2.3), new Struct(4.2), $equalMessage, 0.5) |
|
| 91 | + array(new SampleClass(4, 8, 15), new SampleClass(16, 23, 42), $equalMessage), |
|
| 92 | + array($object1, $object2, $equalMessage), |
|
| 93 | + array($book1, $book2, $equalMessage), |
|
| 94 | + array($book3, $book4, $typeMessage), |
|
| 95 | + array(new Struct(2.3), new Struct(4.2), $equalMessage, 0.5) |
|
| 96 | 96 | ); |
| 97 | 97 | } |
| 98 | 98 | |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | public function testAcceptsSucceeds($expected, $actual) |
| 104 | 104 | { |
| 105 | 105 | $this->assertTrue( |
| 106 | - $this->comparator->accepts($expected, $actual) |
|
| 106 | + $this->comparator->accepts($expected, $actual) |
|
| 107 | 107 | ); |
| 108 | 108 | } |
| 109 | 109 | |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | public function testAcceptsFails($expected, $actual) |
| 115 | 115 | { |
| 116 | 116 | $this->assertFalse( |
| 117 | - $this->comparator->accepts($expected, $actual) |
|
| 117 | + $this->comparator->accepts($expected, $actual) |
|
| 118 | 118 | ); |
| 119 | 119 | } |
| 120 | 120 | |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | public function testAssertEqualsFails($expected, $actual, $message, $delta = 0.0) |
| 144 | 144 | { |
| 145 | 145 | $this->setExpectedException( |
| 146 | - 'SebastianBergmann\\Comparator\\ComparisonFailure', $message |
|
| 146 | + 'SebastianBergmann\\Comparator\\ComparisonFailure', $message |
|
| 147 | 147 | ); |
| 148 | 148 | $this->comparator->assertEquals($expected, $actual, $delta); |
| 149 | 149 | } |
@@ -29,9 +29,9 @@ discard block |
||
| 29 | 29 | $tmpfile2 = tmpfile(); |
| 30 | 30 | |
| 31 | 31 | return array( |
| 32 | - array($tmpfile1, $tmpfile1), |
|
| 33 | - array($tmpfile2, $tmpfile2), |
|
| 34 | - array($tmpfile1, $tmpfile2) |
|
| 32 | + array($tmpfile1, $tmpfile1), |
|
| 33 | + array($tmpfile2, $tmpfile2), |
|
| 34 | + array($tmpfile1, $tmpfile2) |
|
| 35 | 35 | ); |
| 36 | 36 | } |
| 37 | 37 | |
@@ -40,9 +40,9 @@ discard block |
||
| 40 | 40 | $tmpfile1 = tmpfile(); |
| 41 | 41 | |
| 42 | 42 | return array( |
| 43 | - array($tmpfile1, null), |
|
| 44 | - array(null, $tmpfile1), |
|
| 45 | - array(null, null) |
|
| 43 | + array($tmpfile1, null), |
|
| 44 | + array(null, $tmpfile1), |
|
| 45 | + array(null, null) |
|
| 46 | 46 | ); |
| 47 | 47 | } |
| 48 | 48 | |
@@ -52,8 +52,8 @@ discard block |
||
| 52 | 52 | $tmpfile2 = tmpfile(); |
| 53 | 53 | |
| 54 | 54 | return array( |
| 55 | - array($tmpfile1, $tmpfile1), |
|
| 56 | - array($tmpfile2, $tmpfile2) |
|
| 55 | + array($tmpfile1, $tmpfile1), |
|
| 56 | + array($tmpfile2, $tmpfile2) |
|
| 57 | 57 | ); |
| 58 | 58 | } |
| 59 | 59 | |
@@ -63,8 +63,8 @@ discard block |
||
| 63 | 63 | $tmpfile2 = tmpfile(); |
| 64 | 64 | |
| 65 | 65 | return array( |
| 66 | - array($tmpfile1, $tmpfile2), |
|
| 67 | - array($tmpfile2, $tmpfile1) |
|
| 66 | + array($tmpfile1, $tmpfile2), |
|
| 67 | + array($tmpfile2, $tmpfile1) |
|
| 68 | 68 | ); |
| 69 | 69 | } |
| 70 | 70 | |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | public function testAcceptsSucceeds($expected, $actual) |
| 76 | 76 | { |
| 77 | 77 | $this->assertTrue( |
| 78 | - $this->comparator->accepts($expected, $actual) |
|
| 78 | + $this->comparator->accepts($expected, $actual) |
|
| 79 | 79 | ); |
| 80 | 80 | } |
| 81 | 81 | |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | public function testAcceptsFails($expected, $actual) |
| 87 | 87 | { |
| 88 | 88 | $this->assertFalse( |
| 89 | - $this->comparator->accepts($expected, $actual) |
|
| 89 | + $this->comparator->accepts($expected, $actual) |
|
| 90 | 90 | ); |
| 91 | 91 | } |
| 92 | 92 | |
@@ -26,55 +26,55 @@ discard block |
||
| 26 | 26 | public function acceptsSucceedsProvider() |
| 27 | 27 | { |
| 28 | 28 | return array( |
| 29 | - array("string", "string"), |
|
| 30 | - array(new ClassWithToString, "string"), |
|
| 31 | - array("string", new ClassWithToString), |
|
| 32 | - array("string", null), |
|
| 33 | - array(false, "string"), |
|
| 34 | - array(false, true), |
|
| 35 | - array(null, false), |
|
| 36 | - array(null, null), |
|
| 37 | - array("10", 10), |
|
| 38 | - array("", false), |
|
| 39 | - array("1", true), |
|
| 40 | - array(1, true), |
|
| 41 | - array(0, false), |
|
| 42 | - array(0.1, "0.1") |
|
| 29 | + array("string", "string"), |
|
| 30 | + array(new ClassWithToString, "string"), |
|
| 31 | + array("string", new ClassWithToString), |
|
| 32 | + array("string", null), |
|
| 33 | + array(false, "string"), |
|
| 34 | + array(false, true), |
|
| 35 | + array(null, false), |
|
| 36 | + array(null, null), |
|
| 37 | + array("10", 10), |
|
| 38 | + array("", false), |
|
| 39 | + array("1", true), |
|
| 40 | + array(1, true), |
|
| 41 | + array(0, false), |
|
| 42 | + array(0.1, "0.1") |
|
| 43 | 43 | ); |
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | public function acceptsFailsProvider() |
| 47 | 47 | { |
| 48 | 48 | return array( |
| 49 | - array(array(), array()), |
|
| 50 | - array("string", array()), |
|
| 51 | - array(new ClassWithToString, new ClassWithToString), |
|
| 52 | - array(false, new ClassWithToString), |
|
| 53 | - array(tmpfile(), tmpfile()) |
|
| 49 | + array(array(), array()), |
|
| 50 | + array("string", array()), |
|
| 51 | + array(new ClassWithToString, new ClassWithToString), |
|
| 52 | + array(false, new ClassWithToString), |
|
| 53 | + array(tmpfile(), tmpfile()) |
|
| 54 | 54 | ); |
| 55 | 55 | } |
| 56 | 56 | |
| 57 | 57 | public function assertEqualsSucceedsProvider() |
| 58 | 58 | { |
| 59 | 59 | return array( |
| 60 | - array("string", "string"), |
|
| 61 | - array(new ClassWithToString, new ClassWithToString), |
|
| 62 | - array("string representation", new ClassWithToString), |
|
| 63 | - array(new ClassWithToString, "string representation"), |
|
| 64 | - array("string", "STRING", true), |
|
| 65 | - array("STRING", "string", true), |
|
| 66 | - array("String Representation", new ClassWithToString, true), |
|
| 67 | - array(new ClassWithToString, "String Representation", true), |
|
| 68 | - array("10", 10), |
|
| 69 | - array("", false), |
|
| 70 | - array("1", true), |
|
| 71 | - array(1, true), |
|
| 72 | - array(0, false), |
|
| 73 | - array(0.1, "0.1"), |
|
| 74 | - array(false, null), |
|
| 75 | - array(false, false), |
|
| 76 | - array(true, true), |
|
| 77 | - array(null, null) |
|
| 60 | + array("string", "string"), |
|
| 61 | + array(new ClassWithToString, new ClassWithToString), |
|
| 62 | + array("string representation", new ClassWithToString), |
|
| 63 | + array(new ClassWithToString, "string representation"), |
|
| 64 | + array("string", "STRING", true), |
|
| 65 | + array("STRING", "string", true), |
|
| 66 | + array("String Representation", new ClassWithToString, true), |
|
| 67 | + array(new ClassWithToString, "String Representation", true), |
|
| 68 | + array("10", 10), |
|
| 69 | + array("", false), |
|
| 70 | + array("1", true), |
|
| 71 | + array(1, true), |
|
| 72 | + array(0, false), |
|
| 73 | + array(0.1, "0.1"), |
|
| 74 | + array(false, null), |
|
| 75 | + array(false, false), |
|
| 76 | + array(true, true), |
|
| 77 | + array(null, null) |
|
| 78 | 78 | ); |
| 79 | 79 | } |
| 80 | 80 | |
@@ -84,23 +84,23 @@ discard block |
||
| 84 | 84 | $otherException = 'matches expected'; |
| 85 | 85 | |
| 86 | 86 | return array( |
| 87 | - array("string", "other string", $stringException), |
|
| 88 | - array("string", "STRING", $stringException), |
|
| 89 | - array("STRING", "string", $stringException), |
|
| 90 | - array("string", "other string", $stringException), |
|
| 91 | - // https://github.com/sebastianbergmann/phpunit/issues/1023 |
|
| 92 | - array('9E6666666','9E7777777', $stringException), |
|
| 93 | - array(new ClassWithToString, "does not match", $otherException), |
|
| 94 | - array("does not match", new ClassWithToString, $otherException), |
|
| 95 | - array(0, 'Foobar', $otherException), |
|
| 96 | - array('Foobar', 0, $otherException), |
|
| 97 | - array("10", 25, $otherException), |
|
| 98 | - array("1", false, $otherException), |
|
| 99 | - array("", true, $otherException), |
|
| 100 | - array(false, true, $otherException), |
|
| 101 | - array(true, false, $otherException), |
|
| 102 | - array(null, true, $otherException), |
|
| 103 | - array(0, true, $otherException) |
|
| 87 | + array("string", "other string", $stringException), |
|
| 88 | + array("string", "STRING", $stringException), |
|
| 89 | + array("STRING", "string", $stringException), |
|
| 90 | + array("string", "other string", $stringException), |
|
| 91 | + // https://github.com/sebastianbergmann/phpunit/issues/1023 |
|
| 92 | + array('9E6666666','9E7777777', $stringException), |
|
| 93 | + array(new ClassWithToString, "does not match", $otherException), |
|
| 94 | + array("does not match", new ClassWithToString, $otherException), |
|
| 95 | + array(0, 'Foobar', $otherException), |
|
| 96 | + array('Foobar', 0, $otherException), |
|
| 97 | + array("10", 25, $otherException), |
|
| 98 | + array("1", false, $otherException), |
|
| 99 | + array("", true, $otherException), |
|
| 100 | + array(false, true, $otherException), |
|
| 101 | + array(true, false, $otherException), |
|
| 102 | + array(null, true, $otherException), |
|
| 103 | + array(0, true, $otherException) |
|
| 104 | 104 | ); |
| 105 | 105 | } |
| 106 | 106 | |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | public function testAcceptsSucceeds($expected, $actual) |
| 112 | 112 | { |
| 113 | 113 | $this->assertTrue( |
| 114 | - $this->comparator->accepts($expected, $actual) |
|
| 114 | + $this->comparator->accepts($expected, $actual) |
|
| 115 | 115 | ); |
| 116 | 116 | } |
| 117 | 117 | |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | public function testAcceptsFails($expected, $actual) |
| 123 | 123 | { |
| 124 | 124 | $this->assertFalse( |
| 125 | - $this->comparator->accepts($expected, $actual) |
|
| 125 | + $this->comparator->accepts($expected, $actual) |
|
| 126 | 126 | ); |
| 127 | 127 | } |
| 128 | 128 | |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | public function testAssertEqualsFails($expected, $actual, $message) |
| 152 | 152 | { |
| 153 | 153 | $this->setExpectedException( |
| 154 | - 'SebastianBergmann\\Comparator\\ComparisonFailure', $message |
|
| 154 | + 'SebastianBergmann\\Comparator\\ComparisonFailure', $message |
|
| 155 | 155 | ); |
| 156 | 156 | $this->comparator->assertEquals($expected, $actual); |
| 157 | 157 | } |
@@ -29,9 +29,9 @@ discard block |
||
| 29 | 29 | public function acceptsFailsProvider() |
| 30 | 30 | { |
| 31 | 31 | return array( |
| 32 | - array(new SplObjectStorage, new stdClass), |
|
| 33 | - array(new stdClass, new SplObjectStorage), |
|
| 34 | - array(new stdClass, new stdClass) |
|
| 32 | + array(new SplObjectStorage, new stdClass), |
|
| 33 | + array(new stdClass, new SplObjectStorage), |
|
| 34 | + array(new stdClass, new stdClass) |
|
| 35 | 35 | ); |
| 36 | 36 | } |
| 37 | 37 | |
@@ -52,10 +52,10 @@ discard block |
||
| 52 | 52 | $storage4->attach($object1); |
| 53 | 53 | |
| 54 | 54 | return array( |
| 55 | - array($storage1, $storage1), |
|
| 56 | - array($storage1, $storage2), |
|
| 57 | - array($storage3, $storage3), |
|
| 58 | - array($storage3, $storage4) |
|
| 55 | + array($storage1, $storage1), |
|
| 56 | + array($storage1, $storage2), |
|
| 57 | + array($storage3, $storage3), |
|
| 58 | + array($storage3, $storage4) |
|
| 59 | 59 | ); |
| 60 | 60 | } |
| 61 | 61 | |
@@ -74,9 +74,9 @@ discard block |
||
| 74 | 74 | $storage3->attach($object1); |
| 75 | 75 | |
| 76 | 76 | return array( |
| 77 | - array($storage1, $storage2), |
|
| 78 | - array($storage1, $storage3), |
|
| 79 | - array($storage2, $storage3), |
|
| 77 | + array($storage1, $storage2), |
|
| 78 | + array($storage1, $storage3), |
|
| 79 | + array($storage2, $storage3), |
|
| 80 | 80 | ); |
| 81 | 81 | } |
| 82 | 82 | |
@@ -86,10 +86,10 @@ discard block |
||
| 86 | 86 | public function testAcceptsSucceeds() |
| 87 | 87 | { |
| 88 | 88 | $this->assertTrue( |
| 89 | - $this->comparator->accepts( |
|
| 89 | + $this->comparator->accepts( |
|
| 90 | 90 | new SplObjectStorage, |
| 91 | 91 | new SplObjectStorage |
| 92 | - ) |
|
| 92 | + ) |
|
| 93 | 93 | ); |
| 94 | 94 | } |
| 95 | 95 | |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | public function testAcceptsFails($expected, $actual) |
| 101 | 101 | { |
| 102 | 102 | $this->assertFalse( |
| 103 | - $this->comparator->accepts($expected, $actual) |
|
| 103 | + $this->comparator->accepts($expected, $actual) |
|
| 104 | 104 | ); |
| 105 | 105 | } |
| 106 | 106 | |
@@ -129,8 +129,8 @@ discard block |
||
| 129 | 129 | public function testAssertEqualsFails($expected, $actual) |
| 130 | 130 | { |
| 131 | 131 | $this->setExpectedException( |
| 132 | - 'SebastianBergmann\\Comparator\\ComparisonFailure', |
|
| 133 | - 'Failed asserting that two objects are equal.' |
|
| 132 | + 'SebastianBergmann\\Comparator\\ComparisonFailure', |
|
| 133 | + 'Failed asserting that two objects are equal.' |
|
| 134 | 134 | ); |
| 135 | 135 | $this->comparator->assertEquals($expected, $actual); |
| 136 | 136 | } |
@@ -28,38 +28,38 @@ discard block |
||
| 28 | 28 | public function acceptsSucceedsProvider() |
| 29 | 29 | { |
| 30 | 30 | return array( |
| 31 | - array(true, 1), |
|
| 32 | - array(false, array(1)), |
|
| 33 | - array(null, new stdClass), |
|
| 34 | - array(1.0, 5), |
|
| 35 | - array("", "") |
|
| 31 | + array(true, 1), |
|
| 32 | + array(false, array(1)), |
|
| 33 | + array(null, new stdClass), |
|
| 34 | + array(1.0, 5), |
|
| 35 | + array("", "") |
|
| 36 | 36 | ); |
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | public function assertEqualsSucceedsProvider() |
| 40 | 40 | { |
| 41 | 41 | return array( |
| 42 | - array(true, true), |
|
| 43 | - array(true, false), |
|
| 44 | - array(false, false), |
|
| 45 | - array(null, null), |
|
| 46 | - array(new stdClass, new stdClass), |
|
| 47 | - array(0, 0), |
|
| 48 | - array(1.0, 2.0), |
|
| 49 | - array("hello", "world"), |
|
| 50 | - array("", ""), |
|
| 51 | - array(array(), array(1,2,3)) |
|
| 42 | + array(true, true), |
|
| 43 | + array(true, false), |
|
| 44 | + array(false, false), |
|
| 45 | + array(null, null), |
|
| 46 | + array(new stdClass, new stdClass), |
|
| 47 | + array(0, 0), |
|
| 48 | + array(1.0, 2.0), |
|
| 49 | + array("hello", "world"), |
|
| 50 | + array("", ""), |
|
| 51 | + array(array(), array(1,2,3)) |
|
| 52 | 52 | ); |
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | public function assertEqualsFailsProvider() |
| 56 | 56 | { |
| 57 | 57 | return array( |
| 58 | - array(true, null), |
|
| 59 | - array(null, false), |
|
| 60 | - array(1.0, 0), |
|
| 61 | - array(new stdClass, array()), |
|
| 62 | - array("1", 1) |
|
| 58 | + array(true, null), |
|
| 59 | + array(null, false), |
|
| 60 | + array(1.0, 0), |
|
| 61 | + array(new stdClass, array()), |
|
| 62 | + array("1", 1) |
|
| 63 | 63 | ); |
| 64 | 64 | } |
| 65 | 65 | |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | public function testAcceptsSucceeds($expected, $actual) |
| 71 | 71 | { |
| 72 | 72 | $this->assertTrue( |
| 73 | - $this->comparator->accepts($expected, $actual) |
|
| 73 | + $this->comparator->accepts($expected, $actual) |
|
| 74 | 74 | ); |
| 75 | 75 | } |
| 76 | 76 | |
@@ -182,7 +182,7 @@ |
||
| 182 | 182 | count($fromMatches[0]) === count($toMatches[0]) && |
| 183 | 183 | $fromMatches[0] !== $toMatches[0]) { |
| 184 | 184 | $diff[] = array( |
| 185 | - '#Warning: Strings contain different line endings!', 0 |
|
| 185 | + '#Warning: Strings contain different line endings!', 0 |
|
| 186 | 186 | ); |
| 187 | 187 | } |
| 188 | 188 | |