Code Duplication    Length = 6-6 lines in 2 locations

projects/packages/changelogger/tests/php/tests/lib/ChangelogEntryTest.php 2 locations

@@ 182-187 (lines=6) @@
179
	/**
180
	 * Test setChanges error.
181
	 */
182
	public function testSetChanges_error1() {
183
		$entry = new ChangelogEntry( '1.0' );
184
		$this->expectException( InvalidArgumentException::class );
185
		$this->expectExceptionMessage( 'Automattic\\Jetpack\\Changelog\\ChangelogEntry::setChanges: Expected a ChangeEntry, got NULL at index 0' );
186
		$entry->setChanges( array( null ) );
187
	}
188
189
	/**
190
	 * Test setChanges error.
@@ 192-197 (lines=6) @@
189
	/**
190
	 * Test setChanges error.
191
	 */
192
	public function testSetChanges_error2() {
193
		$entry = new ChangelogEntry( '1.0' );
194
		$this->expectException( InvalidArgumentException::class );
195
		$this->expectExceptionMessage( 'Automattic\\Jetpack\\Changelog\\ChangelogEntry::setChanges: Expected a ChangeEntry, got Automattic\\Jetpack\\Changelog\\ChangelogEntry at index 0' );
196
		$entry->setChanges( array( $entry ) );
197
	}
198
199
}
200