[ 
https://issues.apache.org/jira/browse/ZETACOMP-94?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Oliver Mueller updated ZETACOMP-94:
-----------------------------------

    Component/s: EventLogDatabaseTiein
    
> Fatal error in tests
> --------------------
>
>                 Key: ZETACOMP-94
>                 URL: https://issues.apache.org/jira/browse/ZETACOMP-94
>             Project: Zeta Components
>          Issue Type: Bug
>          Components: AuthenticationDatabaseTiein, EventLogDatabaseTiein, 
> UnitTest
>            Reporter: Oliver Mueller
>
> executing "php UnitTest/src/runtests.php EventLogDatabaseTiein" without havng 
> a DB generates a fatal error:
> PHPUnit 3.5.15 by Sebastian Bergmann.
> Zeta Components:                        
>   EventLogDatabaseTiein:                
>     ezcLogDatabaseWriterTest:           PHP Notice:  Undefined property: 
> ezcLogDatabaseWriterTest::$db in 
> /opt/zetacomponents/trunk/EventLogDatabaseTiein/tests/writers/writer_database_test.php
>  on line 75
> Notice: Undefined property: ezcLogDatabaseWriterTest::$db in 
> /opt/zetacomponents/trunk/EventLogDatabaseTiein/tests/writers/writer_database_test.php
>  on line 75
> PHP Fatal error:  Call to a member function exec() on a non-object in 
> /opt/zetacomponents/trunk/EventLogDatabaseTiein/tests/writers/writer_database_test.php
>  on line 75
> Fatal error: Call to a member function exec() on a non-object in 
> /opt/zetacomponents/trunk/EventLogDatabaseTiein/tests/writers/writer_database_test.php
>  on line 75
> This happens, because the teardown function is using the $db as an object, 
> but if no DB is available it is going to be false.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to