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

Commit

Permalink
[#2308] CS fixes
Browse files Browse the repository at this point in the history
- Trailing whitespace
  • Loading branch information
weierophinney committed Sep 13, 2012
1 parent 890819d commit 9146975
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -15,12 +15,12 @@
class SamplePluginWithConstructor extends AbstractPlugin
{
protected $bar;

public function __construct($bar = 'baz')
{
$this->bar = $bar;
}

public function getBar()
{
return $this->bar;
Expand Down
4 changes: 2 additions & 2 deletions tests/ZendTest/Mvc/Controller/PluginManagerTest.php
Expand Up @@ -55,15 +55,15 @@ public function testPluginManagerInjectsControllerForExistingPlugin()
$plugin = $pluginManager->get('samplePlugin');
$this->assertEquals($controller2, $plugin->getController());
}

public function testGetWithConstrutor()
{
$pluginManager = new PluginManager;
$pluginManager->setInvokableClass('samplePlugin', 'ZendTest\Mvc\Controller\Plugin\TestAsset\SamplePluginWithConstructor');
$plugin = $pluginManager->get('samplePlugin');
$this->assertEquals($plugin->getBar(), 'baz');
}

public function testGetWithConstrutorAndOptions()
{
$pluginManager = new PluginManager;
Expand Down

0 comments on commit 9146975

Please sign in to comment.