Code Duplication    Length = 6-6 lines in 2 locations

tests/lib/command/asyncbus.php 2 locations

@@ 96-101 (lines=6) @@
93
		$this->assertEquals('SimpleCommand', self::$lastCommand);
94
	}
95
96
	public function testStateFullCommand() {
97
		$command = new StateFullCommand('foo');
98
		$this->bus->push($command);
99
		$this->runJobs();
100
		$this->assertEquals('foo', self::$lastCommand);
101
	}
102
103
	public function testStaticCallable() {
104
		$this->bus->push(['\Test\Command\AsyncBus', 'DummyCommand']);
@@ 109-114 (lines=6) @@
106
		$this->assertEquals('static', self::$lastCommand);
107
	}
108
109
	public function testMemberCallable() {
110
		$command = new StateFullCommand('bar');
111
		$this->bus->push([$command, 'handle']);
112
		$this->runJobs();
113
		$this->assertEquals('bar', self::$lastCommand);
114
	}
115
116
	public function testFunctionCallable() {
117
		$this->bus->push('\Test\Command\BasicFunction');