public function testCanDefineCustomTaskThatBundlesUpSeveralOthersInAnArray() { $classMap = new ClassMap(); $classMap->register('dummy', '\\Gasp\\Task\\Dummy'); $run = new Run($classMap); $run->task('dummy-alias', 'dummy'); $run->task('bundle', ['dummy', 'dummy-alias']); $this->assertInstanceOf('\\Gasp\\Result\\Aggregate', $run->runTaskByName('bundle')); }