diff --git a/composer.json b/composer.json index 4619d3e..7453cfd 100644 --- a/composer.json +++ b/composer.json @@ -32,7 +32,10 @@ ] }, "autoload-dev": { - "psr-4": { "Fidry\\PsyshBundle\\": "tests" } + "psr-4": { "Fidry\\PsyshBundle\\": "tests" }, + "files": [ + "tests/Functional/AppKernel.php" + ] }, "config": { "bin-dir": "bin", diff --git a/src/PsyshFacade.php b/src/PsyshFacade.php index 5dbf08e..1fb70bc 100644 --- a/src/PsyshFacade.php +++ b/src/PsyshFacade.php @@ -45,6 +45,8 @@ public static function init() public static function debug(array $variables = [], $bind = null) { + self::init(); + $_variables = array_merge(self::$shell->getScopeVariables(), $variables); extract(