File tree Expand file tree Collapse file tree
tests/Benchmarks/Integrations Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313class WordPressBench extends FrameworkBenchmarksCase
1414{
1515 /**
16- * @BeforeMethods("enableDatadog")
16+ * @BeforeMethods({ "enableDatadog", "createDatabase"} )
1717 * @AfterMethods("afterMethod")
1818 * @Revs(10)
1919 * @Iterations(10)
@@ -34,12 +34,11 @@ public static function getAppIndexScript()
3434 return __DIR__ . '/../../Frameworks/WordPress/Version_6_1/index.php ' ;
3535 }
3636
37- public function disableWordPressTracing ()
37+ public function createDatabase (): void
3838 {
3939 $ pdo = new \PDO ('mysql:host=mysql_integration ' , 'test ' , 'test ' );
4040 $ pdo ->exec ('CREATE DATABASE IF NOT EXISTS wp61 ' );
4141 $ pdo ->exec (file_get_contents (__DIR__ . '/../../Frameworks/WordPress/Version_6_1/scripts/wp_initdb.sql ' ));
42- $ this ->disableDatadog ();
4342 }
4443
4544 public function afterMethod ()
@@ -48,7 +47,7 @@ public function afterMethod()
4847 }
4948
5049 /**
51- * @BeforeMethods("disableWordPressTracing" )
50+ * @BeforeMethods({"disableDatadog", "createDatabase"} )
5251 * @AfterMethods("afterMethod")
5352 * @Revs(10)
5453 * @Iterations(10)
You can’t perform that action at this time.
0 commit comments