for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* File ProcessorCounterTest.php
*
* @author Edward Pfremmer <[email protected]>
*/
namespace Epfremme\ProcessQueue\Tests\System;
use Epfremme\ProcessQueue\System\ProcessorCounter;
* Class ProcessorCounterTest
* @package Epfremme\ProcessQueue\Tests\System
class ProcessorCounterTest extends \PHPUnit_Framework_TestCase
{
public function testGetCpuCount()
$processorCounter = new ProcessorCounter();
$processorCount = $processorCounter->getCpuCount();
$this->assertInternalType('integer', $processorCount);
$this->assertGreaterThan(0, $processorCount);
}
public function testToString()
$processorCount = (string) $processorCounter;
$this->assertInternalType('string', $processorCount);