diff --git a/Command/AtoumCommand.php b/Command/AtoumCommand.php
index <HASH>..<HASH> 100644
--- a/Command/AtoumCommand.php
+++ b/Command/AtoumCommand.php
@@ -80,7 +80,7 @@ EOF
             }
 
             foreach ($directories as $directory) {
-                $runner->addTestAllDirectory($directory);
+                $runner->getRunner()->addTestsFromDirectory($directory);
             }
         }
Fix use of deprecated addTestAllDirectory in AtoumCommand