Пример #1
0
 /**
  * Ensures that the filter follows expected behavior
  *
  * @return void
  */
 public function testSettingFalseType()
 {
     try {
         $this->_filter->setType(true);
         $this->fail();
     } catch (Zend_Exception $e) {
         $this->assertContains('Unknown', $e->getMessage());
     }
 }
Пример #2
0
 /**
  * Ensures that the filter follows expected behavior
  *
  * @return void
  */
 public function testSettingFalseType()
 {
     $this->setExpectedException('\\Zend\\Filter\\Exception\\InvalidArgumentException', 'Unknown');
     $this->_filter->setType(true);
 }