From 0eafc81b85c7bd1a288cfc3efee03046b6db7a21 Mon Sep 17 00:00:00 2001 From: Dorian Villet Date: Tue, 19 Nov 2013 21:47:02 +0100 Subject: [PATCH] Fix method "getTotalTime" to "getDuration". See http://symfony.com/doc/current/cookbook/testing/profiling.html and http://api.symfony.com/2.3/Symfony/Component/HttpKernel/DataCollector/TimeDataCollector.html#method_getDuration --- cookbook/testing/profiling.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbook/testing/profiling.rst b/cookbook/testing/profiling.rst index 7a1d1747c..d2635e15b 100755 --- a/cookbook/testing/profiling.rst +++ b/cookbook/testing/profiling.rst @@ -37,7 +37,7 @@ qu'il est disponible (il est activé par défaut dans l'environnement de ``test` $this->assertLessThan(10, $profile->getCollector('db')->getQueryCount()); // Vérifier le temps utilisé par le framework - $this->assertLessThan((500, $profile->getCollector('time')->getTotalTime()); + $this->assertLessThan((500, $profile->getCollector('time')->getDuration()); } } }