From 559d59c512bfcebcf91e3eda5fc11d2c964c6b04 Mon Sep 17 00:00:00 2001 From: Malte Gerth Date: Tue, 9 Sep 2014 12:56:42 +0200 Subject: [PATCH] added NULL test --- profiles/VariableProfiles.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/profiles/VariableProfiles.php b/profiles/VariableProfiles.php index 9b39856..7329efc 100644 --- a/profiles/VariableProfiles.php +++ b/profiles/VariableProfiles.php @@ -2,6 +2,7 @@ class VariableProfiles implements IProfile { public function __construct() { + $this->null = null; $this->string = "foo"; $this->bool = true; $this->integer= 1234; @@ -21,6 +22,14 @@ public function profileIsEmptyOnSimpleString() { empty($this->string); } + public function profileIsEmptyOnNullValue() { + empty($this->null); + } + + public function profileIsNullOnNullValue() { + null == $this->null; + } + /* public function profileIsEmptyOnBoolean() { empty($this->bool);