PhpBench\Tests\Benchmark\BenchmarkFinderTest::testSpecificBenchmark PHP Method

testSpecificBenchmark() public method

It should not run other benchmarks.
    public function testSpecificBenchmark()
    {
        $this->factory->getMetadataForFile(__DIR__ . '/findertestnested/MyBench.php')->willReturn($this->benchmark1->reveal());
        $benchmarks = $this->finder->findBenchmarks(__DIR__ . '/findertestnested/MyBench.php');
        $this->assertCount(1, $benchmarks);
    }