コード例 #1
0
 public function testDefaultEmpty()
 {
     $this->_view->plugin('renderToPlaceholder')->__invoke('rendertoplaceholderscript.phtml', 'fooPlaceholder');
     $placeholder = new PlaceholderHelper();
     $this->assertEquals("Foo Bar" . "\n", $placeholder->__invoke('fooPlaceholder')->getValue());
 }
コード例 #2
0
ファイル: PlaceholderTest.php プロジェクト: pnaq57/zf2demo
 /**
  * @return void
  */
 public function testPlaceholderRetrievesSameContainerOnSubsequentCalls()
 {
     $container1 = $this->placeholder->__invoke('foo');
     $container2 = $this->placeholder->__invoke('foo');
     $this->assertSame($container1, $container2);
 }