Skip to content

Commit

Permalink
#106 Added changelog and improved tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mnapoli committed Sep 5, 2013
1 parent 2947db9 commit 56d605d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions change-log.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## 3.4

* You can now define arrays of values (in YAML, PHP, …) [#106](https://github.com/mnapoli/PHP-DI/pull/106/)

## 3.3

Read the [news entry](news/03-php-di-3-3.md).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,9 @@ public function testIndexedNonEmptyArrayAsValidValue()
'foo' => array('a', 'b', 'c')
)
);
$source->getDefinition('foo');
$definition = $source->getDefinition('foo');
$this->assertInstanceOf('\\DI\\Definition\\ValueDefinition', $definition);
$this->assertEquals(array('a', 'b', 'c'), $definition->getValue());
}

public function testClosureDefinition()
Expand Down

0 comments on commit 56d605d

Please sign in to comment.