Skip to content

Commit

Permalink
Use attributes for benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
franmomu committed Dec 31, 2023
1 parent 02d5b54 commit dec7964
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions benchmark/BaseBench.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use Doctrine\ODM\MongoDB\Configuration;
use Doctrine\ODM\MongoDB\DocumentManager;
use Doctrine\ODM\MongoDB\Mapping\Driver\AnnotationDriver;
use Doctrine\ODM\MongoDB\Mapping\Driver\AttributeDriver;
use MongoDB\Client;
use MongoDB\Model\DatabaseInfo;
use PhpBench\Benchmark\Metadata\Annotations\BeforeMethods;
Expand Down Expand Up @@ -80,8 +80,8 @@ public function clearDatabase(): void
}
}

protected static function createMetadataDriverImpl(): AnnotationDriver
protected static function createMetadataDriverImpl(): AttributeDriver
{
return AnnotationDriver::create(__DIR__ . '/../tests/Documents');
return AttributeDriver::create(__DIR__ . '/../tests/Documents');
}
}

0 comments on commit dec7964

Please sign in to comment.