You are viewing a plain text version of this content. The canonical link for it is here.
Posted to zeta-issues@incubator.apache.org by "Oliver Mueller (Created) (JIRA)" <ji...@apache.org> on 2011/10/06 13:50:29 UTC
[jira] [Created] (ZETACOMP-94) Fatal error in tests
Fatal error in tests
--------------------
Key: ZETACOMP-94
URL: https://issues.apache.org/jira/browse/ZETACOMP-94
Project: Zeta Components
Issue Type: Bug
Components: AuthenticationDatabaseTiein, 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
[jira] [Updated] (ZETACOMP-94) Fatal error in tests
Posted by "Oliver Mueller (Updated) (JIRA)" <ji...@apache.org>.
[ 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