Example #1
0
 public function testOverloadingWithTooFewArgumentsRaisesException()
 {
     try {
         $this->helper->setScript();
         $this->fail('Too few arguments should raise exception');
     } catch (View\Exception\ExceptionInterface $e) {
     }
     try {
         $this->helper->offsetSetScript(5);
         $this->fail('Too few arguments should raise exception');
     } catch (View\Exception\ExceptionInterface $e) {
     }
 }