PhpBench\Tests\Unit\Benchmark\BaselineManagerTest::testCallable PHP Метод

testCallable() публичный Метод

@\PhpBench\Benchmark\Metadata\Annotations\Subject() @\PhpBench\Benchmark\Metadata\Annotations\Iterations(100)
public testCallable ( )
    public function testCallable()
    {
        static::$callCount = 0;
        $this->manager->addBaselineCallable('foo', __CLASS__ . '::baselineExample');
        $this->manager->benchmark('foo', 100);
        $this->assertEquals(100, static::$callCount);
    }