public testApiFlushRuntimes_FlushesRuntimes ( ) |
public function testApiFlushRuntimes_FlushesRuntimes()
{
$manager = $this->createRuntimeManager(['flushThreads', 'flushProcesses']);
$manager->expects($this->once())->method('flushThreads')->will($this->returnValue(new PromiseFulfilled()));
$manager->expects($this->once())->method('flushProcesses')->will($this->returnValue(new PromiseFulfilled()));
$callable = $this->createCallableMock();
$callable->expects($this->once())->method('__invoke');
$manager->flushRuntimes()->then($callable);
}