Code Duplication    Length = 11-11 lines in 2 locations

lib/custom/tests/MW/MQueue/Queue/StompTest.php 2 locations

@@ 54-64 (lines=11) @@
51
	}
52
53
54
	public function testAddException()
55
	{
56
		$this->mock->expects( $this->once() )->method( 'send' )
57
			->will( $this->returnValue( false ) );
58
59
		$this->mock->expects( $this->once() )->method( 'error' )
60
			->will( $this->returnValue( 'exception' ) );
61
62
		$this->setExpectedException( '\Aimeos\MW\MQueue\Exception' );
63
		$this->object->add( 'test' );
64
	}
65
66
67
	public function testDel()
@@ 114-124 (lines=11) @@
111
	}
112
113
114
	public function testGetException()
115
	{
116
		$this->mock->expects( $this->once() )->method( 'hasFrame' )
117
			->will( $this->returnValue( true ) );
118
119
		$this->mock->expects( $this->once() )->method( 'readFrame' )
120
			->will( $this->throwException( new \StompException() ) );
121
122
		$this->setExpectedException( '\Aimeos\MW\MQueue\Exception' );
123
		$this->object->get();
124
	}
125
}
126