Skip to content

Commit

Permalink
Unit test: annotation returns null
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemix committed Jul 14, 2015
1 parent 0a17fd8 commit 2569f39
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/Annotation/InjectConfigTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public function setUp()
'field' => [
'key' => 1,
'bool' => true,
'null' => null,
],
],
],
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 2569f39

Please sign in to comment.