Graze\Supervisor\SupervisorSupervisorTest::testRestart PHP Method

testRestart() public method

public testRestart ( )
    public function testRestart()
    {
        $fn = function () {
        };
        $this->supA->shouldReceive('restart')->once()->with($fn);
        $this->supB->shouldReceive('restart')->once()->with($fn);
        $this->supC->shouldReceive('restart')->once()->with($fn);
        $this->assertSame($this->sup, $this->sup->restart($fn));
        $this->assertNull($this->sup->stderr);
        $this->assertNull($this->sup->stdout);
    }