[TYPO3-dev] Howto write UnitTests for class attributes of type nested array?

Oliver Klee typo3-german-02 at oliverklee.de
Tue Aug 14 19:48:26 CEST 2012


Hi,

Am 04.08.2012 03:27, schrieb Steffen Müller:
> Now I would like to write a UnitTest for the addWriter function. But it
> fails, because $writers is a nested array.

If you know the exact values of the nested array, you can use assertSame
(which can also compare nested array).


Oli
-- 
Certified TYPO3 Integrator | TYPO3 Security Team Member



More information about the TYPO3-dev mailing list