/** * @covers DataSift\Storyplayer\Output::startPhaseGroup() */ public function testCanStartPhaseGroup() { // ---------------------------------------------------------------- // setup the test $activity = "starting"; $name = "unit test"; $plugin1 = Mockery::mock("DataSift\\Storyplayer\\OutputLib\\OutputPlugin"); $plugin1->shouldReceive('startPhaseGroup')->once()->with($activity, $name); $plugin2 = Mockery::mock("DataSift\\Storyplayer\\OutputLib\\OutputPlugin"); $plugin2->shouldReceive('startPhaseGroup')->once()->with($activity, $name); $obj = new Output(); $obj->usePluginInSlot($plugin1, "console"); $obj->usePluginInSlot($plugin2, "slot1"); // ---------------------------------------------------------------- // perform the change $obj->startPhaseGroup($activity, $name); // ---------------------------------------------------------------- // test the results Mockery::close(); }