Skip to content

Commit

Permalink
Adding test for exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
moufmouf committed Jan 21, 2015
1 parent 22c1c70 commit 510cd39
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,3 @@ script:

after_script:
- php vendor/bin/coveralls -v

11 changes: 11 additions & 0 deletions tests/PicotainerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,17 @@ public function testGet()
$this->assertEquals('value', $container->get('instance'));
}

/**
*
* @expectedException Mouf\Picotainer\PicotainerNotFoundException
*/
public function testGetException()
{
$container = new Picotainer([]);

$container->get('nonexistant');
}

public function testDelegateContainer()
{
$container = new Picotainer([
Expand Down

0 comments on commit 510cd39

Please sign in to comment.