Permalink
Browse files

Merge branch 'feature/2671' into develop

Close #2671
  • Loading branch information...
2 parents a0d928b + 6809fdf commit df9797689d399ef07bbe52bc42c9105dc916be02 @weierophinney weierophinney committed Oct 4, 2012
View
2 library/Zend/View/Helper/Placeholder/Container/AbstractContainer.php
@@ -98,6 +98,7 @@ public function __construct()
public function set($value)
{
$this->exchangeArray(array($value));
+ return $this;
}
/**
@@ -111,6 +112,7 @@ public function prepend($value)
$values = $this->getArrayCopy();
array_unshift($values, $value);
$this->exchangeArray($values);
+ return $this;
}
/**
View
20 tests/ZendTest/View/Helper/Placeholder/ContainerTest.php
@@ -126,6 +126,26 @@ public function testSetPostfixImplementsFluentInterface()
/**
* @return void
*/
+
+ public function testPrependImplementsFluentInterface()
+ {
+ $result = $this->container->prepend( 'test' );
+ $this->assertSame($this->container, $result);
+ }
+
+ /**
+ * @return void
+ */
+ public function testSetImplementsFluentInterface()
+ {
+ $result = $this->container->set( 'test' );
+ $this->assertSame($this->container, $result);
+ }
+
+
+ /**
+ * @return void
+ */
public function testSeparatorAccesorsWork()
{
$this->assertEquals('', $this->container->getSeparator());

0 comments on commit df97976

Please sign in to comment.