Issues

ZF-8600: 5 unit tests fail on current trunk for Zend_Session

Issue Type: Bug Created: 2009-12-21T14:26:43.000+0000 Last Updated: 2010-11-16T08:39:42.000+0000 Status: Resolved Fix version(s): - 1.11.1 (30/Nov/10)

Reporter: Stanislav Malyshev (stas) Assignee: Torio Farazdagi (torio) Tags: - Zend_Session

Related issues: - ZF-7196

Attachments: - ZF-8600.diff

Description

5 unit tests for Zend_Session currently fail:

  1. Zend_SessionTest::testSetExpirationSeconds iteration over default Zend_Session namespace failed; expecting result === ';a === apple;o === orange;p === pear', but got 'Usage: /root/framework/tests/Zend/Session/SessionTestHelper.php ' Failed asserting that is true.

/root/framework/tests/Zend/Session/SessionTest.php:813

  1. Zend_SessionTest::testSetExpireSessionHops iteration over default Zend_Session namespace failed (result=''; hop #1) Failed asserting that is true.

/root/framework/tests/Zend/Session/SessionTest.php:869

  1. Zend_SessionTest::testSetExpireSessionVarsByHops1 iteration over named Zend_Session namespace failed (result=''; hop #1) Failed asserting that is true.

/root/framework/tests/Zend/Session/SessionTest.php:921 /root/framework/tests/Zend/Session/SessionTest.php:881

  1. Zend_SessionTest::testSetExpireSessionVarsByHops2 iteration over named Zend_Session namespace failed (result=''; hop #1) Failed asserting that is true.

/root/framework/tests/Zend/Session/SessionTest.php:921 /root/framework/tests/Zend/Session/SessionTest.php:891

  1. Zend_SessionTest::testSetExpireSessionVarsByHopsOnUse unexpected results iterating over named Zend_Session namespace (result=''; expected ';g === guava;p === plum'; hop #1) Failed asserting that is true.

/root/framework/tests/Zend/Session/SessionTest.php:989

Comments

Posted by Jan Pieper (jpieper) on 2010-11-15T02:56:32.000+0000

Attached patch to "fix" these errors but I don't know whether this is a valid fix or only a workaround.

Posted by Torio Farazdagi (torio) on 2010-11-15T07:43:54.000+0000

Jan, What version of PHPUnit do you use? On my ubuntu box with PHPUnit 3.4.9 and 3.5 session tests just hang should I include @runTestsInSeparateProcesses or @runInSeparateProcess annotations (actually, if I remember it correctly those annotations were used at some point in past - then with some phpunit update, great deeds were made to simulate the process using exec directly in tests). In any case, can you please confirm that you run the session tests, process finished ok, and those errors are gone (which will mean I have sth fishy in my box configuration)?

Posted by Matthew Weier O'Phinney (matthew) on 2010-11-16T08:39:41.000+0000

Patch applied to trunk and 1.11 release branch -- thanks!

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts