for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Innmind\ProvisionerBundle\Server;
/**
* Helper used for tests purposes
*/
class DummyServer implements ServerInterface
{
* {@inheritdoc}
public function getCpuUsage()
return 80;
}
public function getProcesses()
return [[
'usage' => 42,
'name' => 'phpunit'
]];
public function getProcessUsage($processName)
return 24;
public function getProcessCount($command)
return 10;
public function getLoadAverage()
return [3, 2, 1];
public function getCurrentLoadAverage()
return 3;