Esempio n. 1
0
 /**
  * @test
  */
 public function renderReturnsZeroIfGivenArrayIsEmpty()
 {
     $expectedResult = 0;
     $this->arguments = array('subject' => array());
     $this->injectDependenciesIntoViewHelper($this->viewHelper);
     $actualResult = $this->viewHelper->render();
     $this->assertSame($expectedResult, $actualResult);
 }
 /**
  * @test
  */
 public function renderReturnsZeroIfGivenArrayIsEmpty()
 {
     $this->viewHelper->expects($this->never())->method('buildRenderChildrenClosure');
     $expectedResult = 0;
     $this->arguments = array('subject' => array());
     $this->injectDependenciesIntoViewHelper($this->viewHelper);
     $actualResult = $this->viewHelper->render();
     $this->assertSame($expectedResult, $actualResult);
 }