Exemplo n.º 1
0
 /**
  * 
  * Test -- Disallow all calls to methods besides factory() and the existing support methods.
  * 
  */
 public final function test__call()
 {
     // we use `new` instead of Solar::factory() so that we get back the
     // factory class itself, not an adapter generated by the factory
     $obj = new Solar_Session_Handler($this->_config);
     try {
         $obj->noSuchMethod();
         $this->fail('__call() should not work');
     } catch (Exception $e) {
         $this->assertTrue(true);
     }
 }
Exemplo n.º 2
0
 /**
  * 
  * Test -- Disallow all calls to methods besides factory() and the existing support methods.
  * 
  */
 public function test__call()
 {
     $obj = new Solar_Session_Handler();
     try {
         $obj->noSuchMethod();
         $this->fail('__call() should not work');
     } catch (Exception $e) {
         $this->assertTrue(true);
     }
 }