function testMultipleMaintenanceObjectsInteractionCleanupChanneledWChannel() { $m2 = new MaintenanceFixup($this); $this->m->outputChanneled("foo", "bazChannel"); $m2->outputChanneled("bar", "bazChannel"); $this->assertEquals("foobar", $this->getActualOutput(), "Output before first cleanup"); $this->m->cleanupChanneled(); $this->assertEquals("foobar\n", $this->getActualOutput(), "Output after first cleanup"); $m2->cleanupChanneled(); $this->assertEquals("foobar\n\n", $this->getActualOutput(), "Output after second cleanup"); $m2->simulateShutdown(); $this->assertOutputPrePostShutdown("foobar\n\n", false); }