IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 7, 2006, 5:29:19 PM (20 years ago)
Author:
jhoblitt
Message:

change Nebulous::Server instantiate objects (init -> new) instead of working with class data
add a DESTROY method to Nebulous::Server to tear down the database connection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous/t/02_server_setup.t

    r4873 r10546  
    33# Copryight (C) 2004-2005  Joshua Hoblitt
    44#
    5 # $Id: 02_server_setup.t,v 1.4 2005-08-25 01:40:04 jhoblitt Exp $
     5# $Id: 02_server_setup.t,v 1.5 2006-12-08 03:29:19 jhoblitt Exp $
    66
    77use strict;
     
    1717Test::Nebulous->setup;
    1818
    19 ok(
    20     Nebulous::Server->init(
     19isa_ok(
     20    Nebulous::Server->new(
    2121        dsn         => "DBI:mysql:database=test:host=localhost",
    2222        dbuser      => "test",
    2323        dbpasswd    => "",
    2424    ),
    25     "connect",
     25    "Nebulous::Server"
    2626);
    2727
     
    2929
    3030eval {
    31     Nebulous::Server->init(
     31    Nebulous::Server->new(
    3232        dsn         => "DBI:mysql:database=foobar:host=localhost",
    3333        dbuser      => "baz",
Note: See TracChangeset for help on using the changeset viewer.