Code Duplication    Length = 6-6 lines in 2 locations

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

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