Пример #1
0
 public function testAppendPrependAndSetThrowExceptionsWhenNonMetaValueProvided()
 {
     try {
         $this->helper->append('foo');
         $this->fail('Non-meta value should not append');
     } catch (ViewException $e) {
     }
     try {
         $this->helper->offsetSet(3, 'foo');
         $this->fail('Non-meta value should not offsetSet');
     } catch (ViewException $e) {
     }
     try {
         $this->helper->prepend('foo');
         $this->fail('Non-meta value should not prepend');
     } catch (ViewException $e) {
     }
     try {
         $this->helper->set('foo');
         $this->fail('Non-meta value should not set');
     } catch (ViewException $e) {
     }
 }