PhpBench\Tests\Unit\Formatter\Format\BalanceFormatTest::testFormat PHP Method

testFormat() public method

It should format positive numbers It should format negative numbers It should format neutral numbers.
public testFormat ( )
    public function testFormat()
    {
        $result = $this->format->format(0, $this->format->getDefaultOptions());
        $this->assertEquals('0', $result);
        $result = $this->format->format(-1, $this->format->getDefaultOptions());
        $this->assertEquals('-1', $result);
        $result = $this->format->format(1, $this->format->getDefaultOptions());
        $this->assertEquals('+1', $result);
    }
BalanceFormatTest