diff --git a/test/Annotation/InjectConfigTest.php b/test/Annotation/InjectConfigTest.php index cccf697..35eff1b 100644 --- a/test/Annotation/InjectConfigTest.php +++ b/test/Annotation/InjectConfigTest.php @@ -31,6 +31,7 @@ public function setUp() 'field' => [ 'key' => 1, 'bool' => true, + 'null' => null, ], ], ], @@ -85,6 +86,14 @@ public function testGetValueReturnInteger() $this->assertSame(1, $inject->getValue($this->sm)); } + public function testGetValueReturnNull() + { + $inject = new InjectConfig(); + $inject->value = 'some.nested.field.null'; + + $this->assertNull($inject->getValue($this->sm)); + } + public function testGetValueReturnBool() { $inject = new InjectConfig();