Skip to content
This repository has been archived by the owner on Feb 6, 2020. It is now read-only.

Commit

Permalink
add a test for broken use case
Browse files Browse the repository at this point in the history
  • Loading branch information
scottaubrey committed Jan 14, 2016
1 parent c8d74ce commit 1939384
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/ServiceManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,17 @@ public function testGetWithAlias()
$this->assertEquals('bar', $this->serviceManager->get('baz'));
}

/**
* @covers Zend\ServiceManager\ServiceManager::get
*/
public function testGetWithAliasofAliasWithCanonicalizedName()
{
$this->serviceManager->setService('Foo', 'Bar');
$this->serviceManager->setAlias('Baz', 'Foo');
$this->serviceManager->setAlias('Qux', 'Baz');
$this->assertEquals('Bar', $this->serviceManager->get('Qux'));
}

/**
* @covers Zend\ServiceManager\ServiceManager::get
*/
Expand Down

0 comments on commit 1939384

Please sign in to comment.