From 77a7b5982d4cee7cb4f5c265fda70cd9117881dd Mon Sep 17 00:00:00 2001 From: DigiLive Date: Thu, 19 Nov 2020 10:05:00 +0100 Subject: [PATCH] Fix namespace and unused code --- tests/Diff/SequenceMatcherTest.php | 43 ++++++++++-------------------- 1 file changed, 14 insertions(+), 29 deletions(-) diff --git a/tests/Diff/SequenceMatcherTest.php b/tests/Diff/SequenceMatcherTest.php index 1cf1d04..80eae0c 100644 --- a/tests/Diff/SequenceMatcherTest.php +++ b/tests/Diff/SequenceMatcherTest.php @@ -1,6 +1,6 @@ - * @author Ferry Cools + * @package Tests\Diff + * @author Mario Brandt + * @author Ferry Cools * @copyright (c) 2009 Mario Brandt - * @license New BSD License http://www.opensource.org/licenses/bsd-license.php - * @version 2.3.0 - * @link https://github.com/JBlond/php-diff + * @license New BSD License http://www.opensource.org/licenses/bsd-license.php + * @version 2.3.0 + * @link https://github.com/JBlond/php-diff */ - class SequenceMatcherTest extends TestCase { - /** - * SequenceMatcherTest constructor. - * - * @param null $name - * @param array $data - * @param string $dataName + * Test the opCodes of the differences between version1 and version2 with the default options. */ - public function __construct($name = null, array $data = [], $dataName = '') - { - parent::__construct($name, $data, $dataName); - } - public function testGetGroupedOpCodesDefault() { // Test with default options. @@ -45,8 +34,10 @@ public function testGetGroupedOpCodesDefault() $this->assertEquals( [ [ - ['equal', 4, 7, 4, 7], ['replace', 7, 8, 7, 8], ['equal', 8, 11, 8, 11] - ] + ['equal', 4, 7, 4, 7], + ['replace', 7, 8, 7, 8], + ['equal', 8, 11, 8, 11], + ], ], $sequenceMatcher->getGroupedOpCodes() ); @@ -83,10 +74,7 @@ public function testGetGroupedOpCodesIgnoreWhitespaceTrue() ['ignoreWhitespace' => true] ); - $this->assertEquals( - [], - $sequenceMatcher->getGroupedOpCodes() - ); + $this->assertEquals([], $sequenceMatcher->getGroupedOpCodes()); } public function testGetGroupedOpCodesIgnoreCaseTrue() @@ -98,9 +86,6 @@ public function testGetGroupedOpCodesIgnoreCaseTrue() ['ignoreCase' => true] ); - $this->assertEquals( - [], - $sequenceMatcher->getGroupedOpCodes() - ); + $this->assertEquals([], $sequenceMatcher->getGroupedOpCodes()); } }