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