Skip to content

Commit 4001603

Browse files
committed
:octocat: nullable/isset test
1 parent 82fe71b commit 4001603

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/ContainerTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ public function testGet(){
5252
// custom getter
5353
$container->test6 = 'foo';
5454
$this->assertSame(sha1('foo'), $container->test6);
55+
// nullable/isset test
56+
$container->test6 = null;
57+
$this->assertFalse(isset($container->test6));
58+
$this->assertSame('null', $container->test6);
5559
}
5660

5761
public function testSet(){

0 commit comments

Comments
 (0)