Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 91-96 (lines=6) @@
88
	/**
89
	 * Test setEntries error.
90
	 */
91
	public function testSetEntries_error1() {
92
		$changelog = new Changelog();
93
		$this->expectException( InvalidArgumentException::class );
94
		$this->expectExceptionMessage( 'Automattic\\Jetpack\\Changelog\\Changelog::setEntries: Expected a ChangelogEntry, got NULL at index 0' );
95
		$changelog->setEntries( array( null ) );
96
	}
97
98
	/**
99
	 * Test setEntries error.
@@ 101-106 (lines=6) @@
98
	/**
99
	 * Test setEntries error.
100
	 */
101
	public function testSetEntries_error2() {
102
		$changelog = new Changelog();
103
		$this->expectException( InvalidArgumentException::class );
104
		$this->expectExceptionMessage( 'Automattic\\Jetpack\\Changelog\\Changelog::setEntries: Expected a ChangelogEntry, got Automattic\\Jetpack\\Changelog\\Changelog at index 0' );
105
		$changelog->setEntries( array( $changelog ) );
106
	}
107
108
}
109