From a24cfd120deec10f84e0fdfa665db4e81f74b66c Mon Sep 17 00:00:00 2001 From: Roussel Xavier Date: Fri, 23 Sep 2016 13:53:48 +0200 Subject: [PATCH] Better test env handling --- src/Xavrsl/Cas/Sso.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Xavrsl/Cas/Sso.php b/src/Xavrsl/Cas/Sso.php index 11af760..e8e3fb3 100644 --- a/src/Xavrsl/Cas/Sso.php +++ b/src/Xavrsl/Cas/Sso.php @@ -23,7 +23,9 @@ class Sso { function __construct($config) { $this->config = $config; - $this->initializeCas(); + if(!$this->isPretending()) { + $this->initializeCas(); + } } /**