Code Duplication    Length = 9-9 lines in 2 locations

lib/custom/tests/MW/MQueue/Queue/AMQPTest.php 1 location

@@ 89-97 (lines=9) @@
86
	}
87
88
89
	public function testGet()
90
	{
91
		$msg = new \PhpAmqpLib\Message\AMQPMessage( 'test' );
92
93
		$this->mock->expects( $this->once() )->method( 'basic_get' )
94
			->will( $this->returnValue( $msg ) );
95
96
		$this->assertInstanceOf( '\Aimeos\MW\MQueue\Message\Iface', $this->object->get() );
97
	}
98
99
100
	public function testGetNone()

lib/custom/tests/MW/MQueue/Queue/BeanstalkTest.php 1 location

@@ 88-96 (lines=9) @@
85
	}
86
87
88
	public function testGet()
89
	{
90
		$msg = new \Pheanstalk\Job( 1, 'test' );
91
92
		$this->mock->expects( $this->once() )->method( 'reserve' )
93
			->will( $this->returnValue( $msg ) );
94
95
		$this->assertInstanceOf( '\Aimeos\MW\MQueue\Message\Iface', $this->object->get() );
96
	}
97
98
99
	public function testGetNone()