Exemplo n.º 1
0
 public function testOffsetSetThrowsExceptionWithoutArrayArgument()
 {
     try {
         $this->helper->offsetSet(1, 'foo');
         $this->fail('set should raise exception without array argument');
     } catch (Exception $e) {
     }
 }
Exemplo n.º 2
0
 public function testOffsetSetThrowsExceptionWithoutArrayArgument()
 {
     $this->setExpectedException('Zend\View\Exception\ExceptionInterface');
     $this->helper->offsetSet(1, 'foo');
 }