Issues

ZF-4472: testOptions(Zend_Translate_Adapter_CsvTest) unit tests problem

Issue Type: Unit Tests: Problem Created: 2008-10-03T11:01:11.000+0000 Last Updated: 2008-11-13T14:10:14.000+0000 Status: Resolved Fix version(s): - 1.7.0 (17/Nov/08)

Reporter: Alexander Veremyev (alexander) Assignee: Thomas Weidner (thomas) Tags: - Zend_Translate

Related issues: Attachments:

Description

{panel} 10) testOptions(Zend_Translate_Adapter_CsvTest) Failed asserting that two arrays are equal. --- Expected +++ Actual @@ -1,11 +1,11 @@ Array ( - [delimiter] => ; - [testoption] => testkey - [clear] => + [clear] => 1 [scan] => [locale] => en + [ignore] => . + [delimiter] => ; [length] => 0 [enclosure] => " - [ignore] => . + [testoption] => testkey ) {panel}

Comments

Posted by Thomas Weidner (thomas) on 2008-10-05T02:19:37.000+0000

This one is interesting....

He expects "delimiter= ;" but found "delimiter=;"... same for "testoption" and "ignore".

Clear should be false but he got 1 ?? Could it be that phpunit does no longer ignore the order of array entries ?

Posted by Alexander Veremyev (alexander) on 2008-10-08T05:39:03.000+0000

It seems order is important.

<pre class="highlight">
$this->assertTrue($arr == $expectedArr)

should work.

Posted by Thomas Weidner (thomas) on 2008-10-08T12:12:52.000+0000

Probably fixed with r11751

Posted by Alexander Veremyev (alexander) on 2008-10-09T01:31:09.000+0000

Yes, fixed.

Posted by Wil Sinclair (wil) on 2008-11-13T14:10:14.000+0000

Changing issues in preparation for the 1.7.0 release.

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