Esempio n. 1
0
File: DB.php Progetto: techart/tao
 /**
  * Конструктор
  *
  * @params string $dsn Строка DSN
  */
 public function __construct($dsn)
 {
     $this->dsn = DB_DSN::parse($dsn);
     $this->listeners = Object::Listener('DB.EventListener');
 }
Esempio n. 2
0
 /**
  * @covers DB_DSN::__unset
  * @expectedException Core_UndestroyablePropertyException
  */
 public function test__unsetFailureUndestroyablePropertyParms()
 {
     $this->object = DB_DSN::parse($this->craftDSN($this->parms));
     unset($this->object->parms);
 }