Ignore:
Timestamp:
May 26, 2006 9:40:35 PM (18 years ago)
Author:
scdev
Message:

finished updating to 2.0singleton

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0singleton/tests/AppTest.php

    r42 r129  
    7979    {
    8080        $expected = 'My message';
    81         App::raiseMsg($expected, MSG_NOTICE, __FILE__, __LINE__);
     81        $app->raiseMsg($expected, MSG_NOTICE, __FILE__, __LINE__);
    8282        $msg = current($_SESSION[$this->App->app]['messages']);
    8383        $this->assertEquals($expected, $msg['message']);
     
    8787    {
    8888        ob_start();
    89         App::printraisedmessages();
     89        $app->printraisedmessages();
    9090        $result = ob_get_clean();
    9191        $this->assertContains('My message', $result, 'Raised message not found in output.');
     
    9595    {
    9696        $file = $this->App->getParam('log_directory') . '/' . $this->App->getParam('log_filename');
    97         App::logMsg('Test log message', LOG_DEBUG, __FILE__, __LINE__);
     97        $app->logMsg('Test log message', LOG_DEBUG, __FILE__, __LINE__);
    9898        if ($result = file($file)) {
    9999            $result = end($result);
     
    107107    {
    108108        $_GET['arg1'] = 'A';
    109         $result = App::ohref('/some/url.php', array('arg1'), true);
     109        $result = $app->ohref('/some/url.php', array('arg1'), true);
    110110        $this->assertContains(session_name(), $result, 'SSID not found in URL.');
    111111        $this->assertContains('arg1=A', $result, 'Argument not passed through.');
     
    115115    {
    116116        ob_start();
    117         App::printhiddensession();
     117        $app->printhiddensession();
    118118        $result = ob_get_clean();
    119119        $this->assertContains(session_name(), $result);
     
    122122//     function test_dieurl()
    123123//     {
    124 //         App::dieURL('/die/to/this/url.php');
     124//         $app->dieURL('/die/to/this/url.php');
    125125//     }
    126126//
Note: See TracChangeset for help on using the changeset viewer.