Example #1
0
 public function testTransformsThrowsExceptionOnInvalidInput()
 {
     $trans = new \Zend\InfoCard\XML\Security\Transform\TransformChain();
     $this->setExpectedException('Zend\\InfoCard\\XML\\Security\\Exception\\InvalidArgumentException', 'Unknown or Unsupported Transformation Requested');
     $trans->addTransform("foo");
 }
Example #2
0
 public function testTransforms()
 {
     $trans = new \Zend\InfoCard\XML\Security\Transform\TransformChain();
     try {
         $trans->addTransform("foo");
         $this->fail("Expected Exception Not Thrown");
     } catch (\Exception $e) {
         /* yay */
     }
     $this->assertTrue(is_array($trans->getTransformList()));
 }