Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 127-132 (lines=6) @@
124
	/**
125
	 * Test setEntries error.
126
	 */
127
	public function testSetEntries_error1() {
128
		$changelog = new Changelog();
129
		$this->expectException( InvalidArgumentException::class );
130
		$this->expectExceptionMessage( 'Automattic\\Jetpack\\Changelog\\Changelog::setEntries: Expected a ChangelogEntry, got NULL at index 0' );
131
		$changelog->setEntries( array( null ) );
132
	}
133
134
	/**
135
	 * Test setEntries error.
@@ 137-142 (lines=6) @@
134
	/**
135
	 * Test setEntries error.
136
	 */
137
	public function testSetEntries_error2() {
138
		$changelog = new Changelog();
139
		$this->expectException( InvalidArgumentException::class );
140
		$this->expectExceptionMessage( 'Automattic\\Jetpack\\Changelog\\Changelog::setEntries: Expected a ChangelogEntry, got Automattic\\Jetpack\\Changelog\\Changelog at index 0' );
141
		$changelog->setEntries( array( $changelog ) );
142
	}
143
144
}
145