Unit Tests

Tests to implement 0
Tests to validate 0
Tests OK 59
Tests failed 0
Tests total 59
Base_String #0 dash2CamelCase default Test OK See details
Test result = Expected result
    [method] => dash2CamelCase
    [args] => abc-def-ghi
    [comment] => default
    [result] => abcDefGhi            
Base_String #1 dash2CamelCase no uppercase first Test OK See details
Test result = Expected result
    [method] => dash2CamelCase
    [args] => Array
        (
            [0] => abc-def-ghi
            [1] => 
        )

    [comment] => no uppercase first
    [result] => abcDefGhi            
Base_String #2 dash2CamelCase uppercase first Test OK See details
Test result = Expected result
    [method] => dash2CamelCase
    [args] => Array
        (
            [0] => abc-def-ghi
            [1] => 1
        )

    [comment] => uppercase first
    [result] => AbcDefGhi            
Base_String #3 expandLigature AE Test OK See details
Test result = Expected result
    [method] => expandLigature
    [args] => Æ
    [comment] => AE
    [result] => AE            
Base_String #4 expandLigature OE Test OK See details
Test result = Expected result
    [method] => expandLigature
    [args] => Œ
    [comment] => OE
    [result] => OE            
Base_String #5 internalToUtf8 ISO to UTF8 Test OK See details
Test result = Expected result
    [method] => internalToUtf8
    [args] => 0
    [comment] => ISO to UTF8
    [result] => 0            
Base_String #6 internalToUtf8 internal to UTF8 Test OK See details
Test result = Expected result
    [method] => internalToUtf8
    [args] => Array
        (
            [0] => 
            [1] => ISO-8859-1
        )

    [comment] => internal to UTF8
    [result] => À            
Base_String #7 isDos DOS shell lowercase Test OK See details
Test result = Expected result
    [method] => isDos
    [args] => Array
        (
            [0] => win
            [1] => cli
        )

    [comment] => DOS shell lowercase
    [result] => 1            
Base_String #8 isDos DOS shell uppercase Test OK See details
Test result = Expected result
    [method] => isDos
    [args] => Array
        (
            [0] => WIN
            [1] => CLI
        )

    [comment] => DOS shell uppercase
    [result] => 1            
Base_String #9 isDos bad OS Test OK See details
Test result = Expected result
    [method] => isDos
    [args] => Array
        (
            [0] => xyz
            [1] => cli
        )

    [comment] => bad OS
    [result] =>             
Base_String #10 isDos bad SAPI Test OK See details
Test result = Expected result
    [method] => isDos
    [args] => Array
        (
            [0] => win
            [1] => xyz
        )

    [comment] => bad SAPI
    [result] =>             
Base_String #11 removeAccents Test OK See details
Test result = Expected result
    [method] => removeAccents
    [args] => ÁÀÂÄÇÉÈÊËÍÌÎÏÑÓÒÔÖÚÙÛÜŸĀĂĒĔĪĬŌŎŪŬ
    [0] => Array
        (
            [method] => toLatin
            [args] => áàâäçéèêëíìîïñóòôöúùûüÿāăēĕīĭōŏūŭjuiv
        )

    [result] => AAAACEEEEIIIINOOOOUUUUYAAEEIIOOUU            
Base_String #12 toLatin Test OK See details
Test result = Expected result
    [method] => toLatin
    [args] => áàâäçéèêëíìîïñóòôöúùûüÿāăēĕīĭōŏūŭjuiv
    [result] => AAAACEEEEIIIINOOOOVVVVYAAEEIIOOVVIVIV            
Base_String #13 toLatin Test OK See details
Test result = Expected result
    [method] => toLatin
    [args] => áàâäçéèêëíìîïñóòôöúùûüÿāăēĕīĭōŏūŭjuiv
    [result] => AAAACEEEEIIIINOOOOVVVVYAAEEIIOOVVIVIV            
Base_String #14 toUpper Test OK See details
Test result = Expected result
    [method] => toUpper
    [args] => abcdefghijklmnopqrstuvwxyzáàâäçéèêëíìîïñóòôöúùûüÿāăēĕīĭōŏūŭ
    [result] => ABCDEFGHIJKLMNOPQRSTUVWXYZÁÀÂÄÇÉÈÊËÍÌÎÏÑÓÒÔÖÚÙÛÜŸĀĂĒĔĪĬŌŎŪŬ            
Base_String #15 utf8toASCII Test OK See details
Test result = Expected result
    [method] => utf8toASCII
    [args] => áàâäçéèêëíìîïñóòôöúùûüÿāăēĕīĭōŏūŭÆ0123456789,?;.:/!§%*
    [result] => AAAACEEEEIIIINOOOOUUUUYAAEEIIOOUUAE            
Base_String #16 utf8toASCIIorDigit Test OK See details
Test result = Expected result
    [method] => utf8toASCIIorDigit
    [args] => áàâäçéèêëíìîïñóòôöúùûüÿāăēĕīĭōŏūŭÆ0123456789,?;.:/!§%*-
    [result] => AAAACEEEEIIIINOOOOUUUUYAAEEIIOOUUAE23456789*-            
Base_String #17 utf8ToInternal string Test OK See details
Test result = Expected result
    [method] => utf8ToInternal
    [args] => abc
    [comment] => string
    [result] => abc            
Base_String #18 utf8ToInternal array Test OK See details
Test result = Expected result
    [method] => utf8ToInternal
    [args] => Array
        (
            [0] => Array
                (
                    [0] => abc
                    [1] => def
                )

        )

    [comment] => array
    [result] => Array
        (
            [0] => abc
            [1] => def
        )
            
Base_String #19 utf8ToInternalString UTF8 to DOS Test OK See details
Test result = Expected result
    [method] => utf8ToInternalString
    [args] => Array
        (
            [0] => Ça
            [1] => 
            [2] => 1
        )

    [comment] => UTF8 to DOS
    [result] => a            
Base_String #20 utf8ToInternalString UTF8 to ISO Test OK See details
Test result = Expected result
    [method] => utf8ToInternalString
    [args] => Array
        (
            [0] => Ça
            [1] => ISO-8859-1
            [2] => 
        )

    [comment] => UTF8 to ISO
    [result] => a            
Base_String #21 utf8ToInternalString UTF8 to internal Test OK See details
Test result = Expected result
    [method] => utf8ToInternalString
    [args] => Array
        (
            [0] => 0
            [1] => 
            [2] => 
        )

    [comment] => UTF8 to internal
    [result] => 0            
View_Helper_Dictionaries #0 countDictionaries Test OK See details
Test result = Expected result
    [method] => countDictionaries
    [properties] => Array
        (
            [view->config] => Array
                (
                    [dictionaries] => Array
                        (
                            [century] => Array
                                (
                                )

                            [chambers] => Array
                                (
                                )

                            [godefroy] => Array
                                (
                                )

                        )

                )

        )

    [result] => 3            
View_Helper_Dictionaries #1 countDictionariesByLanguage Test OK See details
Test result = Expected result
    [method] => countDictionariesByLanguage
    [properties] => Array
        (
            [view->config] => Array
                (
                    [dictionaries] => Array
                        (
                            [century] => Array
                                (
                                    [description] => this is the Century...
                                    [name] => Century
                                    [type] => index
                                )

                            [chambers] => Array
                                (
                                    [name] => Chambers
                                    [description] => this is the Chambers...
                                    [type] => external
                                    [url] => http://century.com
                                )

                            [godefroy] => Array
                                (
                                    [name] => Godefroy
                                    [description] => voici le Godefroy...
                                    [description-en] => this is the Godefroy
                                    [type] => internal
                                )

                        )

                    [groups] => Array
                        (
                            [0] => Array
                                (
                                    [dictionaries] => Array
                                        (
                                            [0] => century
                                            [1] => chambers
                                        )

                                    [language] => en
                                )

                            [1] => Array
                                (
                                    [dictionaries] => Array
                                        (
                                            [0] => godefroy
                                        )

                                    [language] => fr
                                )

                        )

                )

        )

    [result] => Array
        (
            [en] => 2
            [fr] => 1
        )
            
View_Helper_Dictionaries #2 countDictionariesByType Test OK See details
Test result = Expected result
    [method] => countDictionariesByType
    [properties] => Array
        (
            [view->config] => Array
                (
                    [dictionaries] => Array
                        (
                            [century] => Array
                                (
                                    [type] => index
                                )

                            [chambers] => Array
                                (
                                    [type] => index
                                )

                            [godefroy] => Array
                                (
                                    [type] => internal
                                )

                        )

                )

        )

    [result] => Array
        (
            [index] => 2
            [internal] => 1
        )
            
View_Helper_Dictionaries #3 getDictionaryDescription has description Test OK See details
Test result = Expected result
    [method] => getDictionaryDescription
    [properties] => Array
        (
            [view->dictionary] => Array
                (
                    [description] => this is the Century...
                )

        )

    [comment] => has description
    [result] => this is the Century...            
View_Helper_Dictionaries #4 getDictionaryDescription no description Test OK See details
Test result = Expected result
    [method] => getDictionaryDescription
    [comment] => no description
    [result] =>             
View_Helper_Dictionaries #5 getNewDictionaries not new Test OK See details
Test result = Expected result
    [method] => getNewDictionaries
    [properties] => Array
        (
            [view->config] => Array
                (
                    [dictionaries] => Array
                        (
                            [century] => Array
                                (
                                    [created] => 2000-01-01
                                )

                        )

                )

        )

    [comment] => not new
    [result] => Array
        (
        )
            
View_Helper_Dictionaries #6 getNewDictionaries new addition Test OK See details
Test result = Expected result
    [method] => getNewDictionaries
    [properties] => Array
        (
            [view->config] => Array
                (
                    [dictionaries] => Array
                        (
                            [chambers] => Array
                                (
                                    [created] => 2030-01-01
                                    [name] => Chambers
                                    [description] => this is the Chambers...
                                    [type] => index
                                )

                        )

                )

        )

    [comment] => new addition
    [result] => Array
        (
            [0] => Array
                (
                    [text] => Chambers
                    [title] => this is the Chambers...
                    [type] => index
                    [value] => chambers
                )

        )
            
View_Helper_Dictionaries #7 getNewDictionaries new update Test OK See details
Test result = Expected result
    [method] => getNewDictionaries
    [properties] => Array
        (
            [view->config] => Array
                (
                    [dictionaries] => Array
                        (
                            [godefroy] => Array
                                (
                                    [created] => 2000-01-01
                                    [name] => Godefroy
                                    [description] => this is the Godefroy...
                                    [type] => internal
                                    [updated] => 2030-01-01
                                    [url] => http://godefroy.com
                                )

                        )

                )

        )

    [comment] => new update
    [result] => Array
        (
            [0] => Array
                (
                    [text] => Godefroy
                    [title] => this is the Godefroy...
                    [type] => internal
                    [value] => http://godefroy.com
                )

        )
            
View_Helper_Dictionaries #8 getPageTitle Test OK See details
Test result = Expected result
    [method] => getPageTitle
    [properties] => Array
        (
            [view->dictionary] => Array
                (
                    [title] => Century
                )

        )

    [result] => Century            
View_Helper_Dictionaries #9 getPageTitle Test OK See details
Test result = Expected result
    [method] => getPageTitle
    [properties] => Array
        (
            [view->dictionary] => Array
                (
                    [name] => Chambers
                )

        )

    [result] => Chambers            
View_Helper_Dictionaries #10 groupDictionaries original language Test OK See details
Test result = Expected result
    [method] => groupDictionaries
    [args] => chambers
    [properties] => Array
        (
            [view->config] => Array
                (
                    [dictionaries] => Array
                        (
                            [century] => Array
                                (
                                    [description] => this is the Century...
                                    [name] => Century
                                    [type] => index
                                )

                            [chambers] => Array
                                (
                                    [name] => Chambers
                                    [description] => this is the Chambers...
                                    [type] => external
                                    [url] => http://century.com
                                )

                            [godefroy] => Array
                                (
                                    [name] => Godefroy
                                    [description] => voici le Godefroy...
                                    [description-en] => this is the Godefroy
                                    [type] => internal
                                )

                        )

                    [groups] => Array
                        (
                            [0] => Array
                                (
                                    [dictionaries] => Array
                                        (
                                            [0] => century
                                            [1] => chambers
                                        )

                                    [language] => en
                                )

                            [1] => Array
                                (
                                    [dictionaries] => Array
                                        (
                                            [0] => godefroy
                                        )

                                    [language] => fr
                                )

                        )

                )

            [view->languages] => Array
                (
                    [en] => Array
                        (
                            [english] => English
                            [original] => English
                        )

                    [fr] => Array
                        (
                            [english] => French
                            [original] => Français
                        )

                )

        )

    [comment] => original language
    [result] => Array
        (
            [0] => Array
                (
                    [label] => English
                    [language] => en
                    [list-title] => English
                    [options] => Array
                        (
                            [0] => Array
                                (
                                    [list-title] => 
                                    [selected] => 
                                    [text] => Century
                                    [title] => this is the Century...
                                    [type] => index
                                    [value] => century
                                )

                            [1] => Array
                                (
                                    [list-title] => 
                                    [selected] => 1
                                    [text] => Chambers
                                    [title] => this is the Chambers...
                                    [type] => external
                                    [value] => http://century.com
                                )

                        )

                )

            [1] => Array
                (
                    [label] => Français
                    [language] => fr
                    [list-title] => French
                    [options] => Array
                        (
                            [0] => Array
                                (
                                    [list-title] => this is the Godefroy
                                    [selected] => 
                                    [text] => Godefroy
                                    [title] => voici le Godefroy...
                                    [type] => internal
                                    [value] => godefroy
                                )

                        )

                )

        )
            
View_Helper_Dictionaries #11 groupDictionaries in english Test OK See details
Test result = Expected result
    [method] => groupDictionaries
    [args] => Array
        (
            [0] => godefroy
            [1] => 1
        )

    [properties] => Array
        (
            [view->config] => Array
                (
                    [dictionaries] => Array
                        (
                            [century] => Array
                                (
                                    [description] => this is the Century...
                                    [name] => Century
                                    [type] => index
                                )

                            [chambers] => Array
                                (
                                    [name] => Chambers
                                    [description] => this is the Chambers...
                                    [type] => external
                                    [url] => http://century.com
                                )

                            [godefroy] => Array
                                (
                                    [name] => Godefroy
                                    [description] => voici le Godefroy...
                                    [description-en] => this is the Godefroy
                                    [type] => internal
                                )

                        )

                    [groups] => Array
                        (
                            [0] => Array
                                (
                                    [dictionaries] => Array
                                        (
                                            [0] => century
                                            [1] => chambers
                                        )

                                    [language] => en
                                )

                            [1] => Array
                                (
                                    [dictionaries] => Array
                                        (
                                            [0] => godefroy
                                        )

                                    [language] => fr
                                )

                        )

                )

            [view->languages] => Array
                (
                    [en] => Array
                        (
                            [english] => English
                            [original] => English
                        )

                    [fr] => Array
                        (
                            [english] => French
                            [original] => Français
                        )

                )

        )

    [comment] => in english
    [result] => Array
        (
            [0] => Array
                (
                    [label] => English
                    [language] => en
                    [list-title] => English
                    [options] => Array
                        (
                            [0] => Array
                                (
                                    [list-title] => 
                                    [selected] => 
                                    [text] => Century
                                    [title] => this is the Century...
                                    [type] => index
                                    [value] => century
                                )

                            [1] => Array
                                (
                                    [list-title] => 
                                    [selected] => 
                                    [text] => Chambers
                                    [title] => this is the Chambers...
                                    [type] => external
                                    [value] => http://century.com
                                )

                        )

                )

            [1] => Array
                (
                    [label] => French
                    [language] => fr
                    [list-title] => Français
                    [options] => Array
                        (
                            [0] => Array
                                (
                                    [list-title] => voici le Godefroy...
                                    [selected] => 1
                                    [text] => Godefroy
                                    [title] => this is the Godefroy
                                    [type] => internal
                                    [value] => godefroy
                                )

                        )

                )

        )
            
View_Helper_Entries #0 calculate_entry_hash Test OK See details
Test result = Expected result
    [method] => calculate_entry_hash
    [args] => def
    [result] => 214229345            
View_Helper_Entries #1 getEntries no current Test OK See details
Test result = Expected result
    [method] => getEntries
    [properties] => Array
        (
            [view->entries] => Array
                (
                    [previous] => Array
                        (
                            [0] => Array
                                (
                                    [original] => abc
                                    [page] => 123
                                    [volume] => 7
                                )

                        )

                    [next] => Array
                        (
                            [0] => Array
                                (
                                    [original] => def
                                    [page] => 456
                                    [volume] => 8
                                )

                        )

                )

        )

    [comment] => no current
    [result] => Array
        (
            [0] => Array
                (
                    [selected] => 
                    [text] => abc
                    [value] => 123/7/891568578
                )

            [1] => Array
                (
                    [selected] => 1
                    [text] => --
                    [value] => 
                )

            [2] => Array
                (
                    [selected] => 
                    [text] => def
                    [value] => 456/8/214229345
                )

        )
            
View_Helper_Entries #2 getEntries selected hash Test OK See details
Test result = Expected result
    [method] => getEntries
    [properties] => Array
        (
            [entryHash] => 214229345
            [view->entries] => Array
                (
                    [previous] => Array
                        (
                            [0] => Array
                                (
                                    [original] => abc
                                    [page] => 123
                                    [volume] => 7
                                )

                        )

                    [current] => Array
                        (
                            [0] => Array
                                (
                                    [original] => def
                                    [page] => 456
                                    [volume] => 8
                                )

                        )

                    [next] => Array
                        (
                            [0] => Array
                                (
                                    [original] => ghi
                                    [page] => 789
                                    [volume] => 9
                                )

                        )

                )

        )

    [comment] => selected hash
    [result] => Array
        (
            [0] => Array
                (
                    [selected] => 
                    [text] => abc
                    [value] => 123/7/891568578
                )

            [1] => Array
                (
                    [selected] => 1
                    [text] => def
                    [value] => 456/8/214229345
                )

            [2] => Array
                (
                    [selected] => 
                    [text] => ghi
                    [value] => 789/9/731069668
                )

        )
            
View_Helper_Entries #3 getEntries selected word Test OK See details
Test result = Expected result
    [method] => getEntries
    [properties] => Array
        (
            [previousAction] => search
            [view->entries] => Array
                (
                    [previous] => Array
                        (
                            [0] => Array
                                (
                                    [original] => abc
                                    [page] => 123
                                    [volume] => 7
                                )

                        )

                    [current] => Array
                        (
                            [0] => Array
                                (
                                    [original] => def
                                    [page] => 456
                                    [volume] => 8
                                )

                        )

                    [next] => Array
                        (
                            [0] => Array
                                (
                                    [original] => ghi
                                    [page] => 789
                                    [volume] => 9
                                )

                        )

                )

            [view->word] => def
        )

    [comment] => selected word
    [result] => Array
        (
            [0] => Array
                (
                    [selected] => 
                    [text] => abc
                    [value] => 123/7/891568578
                )

            [1] => Array
                (
                    [selected] => 1
                    [text] => def
                    [value] => 456/8/214229345
                )

            [2] => Array
                (
                    [selected] => 
                    [text] => ghi
                    [value] => 789/9/731069668
                )

        )
            
View_Helper_Entries #4 getEntries none selected Test OK See details
Test result = Expected result
    [method] => getEntries
    [properties] => Array
        (
            [view->entries] => Array
                (
                    [previous] => Array
                        (
                            [0] => Array
                                (
                                    [original] => abc
                                    [page] => 123
                                    [volume] => 7
                                )

                        )

                    [current] => Array
                        (
                            [0] => Array
                                (
                                    [original] => def
                                    [page] => 456
                                    [volume] => 8
                                )

                        )

                    [next] => Array
                        (
                            [0] => Array
                                (
                                    [original] => ghi
                                    [page] => 789
                                    [volume] => 9
                                )

                        )

                )

            [view->word] => def
        )

    [comment] => none selected
    [result] => Array
        (
            [0] => Array
                (
                    [selected] => 
                    [text] => abc
                    [value] => 123/7/891568578
                )

            [1] => Array
                (
                    [selected] => 1
                    [text] => def
                    [value] => 456/8/214229345
                )

            [2] => Array
                (
                    [selected] => 
                    [text] => ghi
                    [value] => 789/9/731069668
                )

        )
            
View_Helper_Entries #5 getSelectedAsciiWord no entries Test OK See details
Test result = Expected result
    [method] => getSelectedAsciiWord
    [args] => Array
        (
            [0] => Array
                (
                )

            [1] => abc
        )

    [comment] => no entries
    [result] => 0            
View_Helper_Entries #6 getSelectedAsciiWord none selected Test OK See details
Test result = Expected result
    [method] => getSelectedAsciiWord
    [args] => Array
        (
            [0] => Array
                (
                    [0] => Array
                        (
                            [ascii] => ABC
                        )

                    [1] => Array
                        (
                            [ascii] => DEF
                        )

                )

            [1] => xyz
        )

    [comment] => none selected
    [result] => 0            
View_Helper_Entries #7 getSelectedAsciiWord one selected Test OK See details
Test result = Expected result
    [method] => getSelectedAsciiWord
    [args] => Array
        (
            [0] => Array
                (
                    [0] => Array
                        (
                            [ascii] => ABC
                        )

                    [1] => Array
                        (
                            [ascii] => CA
                        )

                    [2] => Array
                        (
                            [ascii] => GHI
                        )

                )

            [1] => ça
        )

    [comment] => one selected
    [result] => 1            
View_Helper_Entries #8 getSelectedExactWord no entries Test OK See details
Test result = Expected result
    [method] => getSelectedExactWord
    [args] => Array
        (
            [0] => Array
                (
                )

            [1] => abc
        )

    [comment] => no entries
    [result] => 0            
View_Helper_Entries #9 getSelectedExactWord none selected Test OK See details
Test result = Expected result
    [method] => getSelectedExactWord
    [args] => Array
        (
            [0] => Array
                (
                    [0] => Array
                        (
                            [original] => abc
                        )

                    [1] => Array
                        (
                            [original] => def
                        )

                )

            [1] => xyz
        )

    [comment] => none selected
    [result] => 0            
View_Helper_Entries #10 getSelectedExactWord one selected Test OK See details
Test result = Expected result
    [method] => getSelectedExactWord
    [args] => Array
        (
            [0] => Array
                (
                    [0] => Array
                        (
                            [original] => abc
                        )

                    [1] => Array
                        (
                            [original] => one TWO ça
                        )

                    [2] => Array
                        (
                            [original] => def
                        )

                )

            [1] => ONE two ça
        )

    [comment] => one selected
    [result] => 1            
View_Helper_Entries #11 getSelectedHash no entries Test OK See details
Test result = Expected result
    [method] => getSelectedHash
    [args] => Array
        (
            [0] => Array
                (
                )

            [1] => abc
        )

    [comment] => no entries
    [result] => 0            
View_Helper_Entries #12 getSelectedHash none selected Test OK See details
Test result = Expected result
    [method] => getSelectedHash
    [args] => Array
        (
            [0] => Array
                (
                    [0] => Array
                        (
                            [original] => abc
                        )

                    [1] => Array
                        (
                            [original] => def
                        )

                )

            [1] => xyz
        )

    [comment] => none selected
    [result] => 0            
View_Helper_Entries #13 getSelectedHash one selected Test OK See details
Test result = Expected result
    [method] => getSelectedHash
    [args] => Array
        (
            [0] => Array
                (
                    [0] => Array
                        (
                            [original] => abc
                        )

                    [1] => Array
                        (
                            [original] => def
                        )

                    [2] => Array
                        (
                            [original] => ghi
                        )

                )

            [1] => 214229345
        )

    [comment] => one selected
    [result] => 1            
View_Helper_Entries #14 getSelectedLikeWord no entries Test OK See details
Test result = Expected result
    [method] => getSelectedLikeWord
    [args] => Array
        (
            [0] => Array
                (
                )

            [1] => abc
        )

    [comment] => no entries
    [result] => 0            
View_Helper_Entries #15 getSelectedLikeWord none selected Test OK See details
Test result = Expected result
    [method] => getSelectedLikeWord
    [args] => Array
        (
            [0] => Array
                (
                    [0] => Array
                        (
                            [ascii] => ABC
                        )

                    [1] => Array
                        (
                            [ascii] => DEF
                        )

                )

            [1] => xyz
        )

    [comment] => none selected
    [result] => 0            
View_Helper_Entries #16 getSelectedLikeWord one selected Test OK See details
Test result = Expected result
    [method] => getSelectedLikeWord
    [args] => Array
        (
            [0] => Array
                (
                    [0] => Array
                        (
                            [ascii] => ABC
                        )

                    [1] => Array
                        (
                            [ascii] => CARPET
                        )

                    [2] => Array
                        (
                            [ascii] => GHI
                        )

                )

            [1] => ça
        )

    [comment] => one selected
    [result] => 1            
View_Helper_Entries #17 getSelectedWord same word Test OK See details
Test result = Expected result
    [method] => getSelectedWord
    [args] => Array
        (
            [0] => Array
                (
                    [0] => Array
                        (
                            [original] => abc
                        )

                    [1] => Array
                        (
                            [original] => one TWO ça
                        )

                    [2] => Array
                        (
                            [original] => def
                        )

                )

            [1] => ONE two ça
        )

    [comment] => same word
    [result] => 1            
View_Helper_Entries #18 getSelectedWord same ASCII Test OK See details
Test result = Expected result
    [method] => getSelectedWord
    [args] => Array
        (
            [0] => Array
                (
                    [0] => Array
                        (
                            [ascii] => ABC
                            [original] => abc
                        )

                    [1] => Array
                        (
                            [ascii] => CA
                            [original] => ca
                        )

                    [2] => Array
                        (
                            [ascii] => DEF
                            [original] => def
                        )

                )

            [1] => ça
        )

    [comment] => same ASCII
    [result] => 1            
View_Helper_Entries #19 getSelectedWord same begining Test OK See details
Test result = Expected result
    [method] => getSelectedWord
    [args] => Array
        (
            [0] => Array
                (
                    [0] => Array
                        (
                            [ascii] => ABC
                            [original] => abc
                        )

                    [1] => Array
                        (
                            [ascii] => CARPET
                            [original] => carpet
                        )

                    [2] => Array
                        (
                            [ascii] => DEF
                            [original] => def
                        )

                )

            [1] => ça
        )

    [comment] => same begining
    [result] => 1            
View_Helper_Entries #20 getSelectedWord none selected Test OK See details
Test result = Expected result
    [method] => getSelectedWord
    [args] => Array
        (
            [0] => Array
                (
                    [0] => Array
                        (
                            [ascii] => ABC
                            [original] => abc
                        )

                    [1] => Array
                        (
                            [ascii] => DEF
                            [original] => def
                        )

                )

            [1] => xyz
        )

    [comment] => none selected
    [result] => 0            
View_Helper_Entries #21 setOption not selected Test OK See details
Test result = Expected result
    [method] => setOption
    [args] => Array
        (
            [0] => Array
                (
                    [original] => def
                    [page] => 123
                    [volume] => 9
                )

        )

    [comment] => not selected
    [result] => Array
        (
            [selected] => 
            [text] => def
            [value] => 123/9/214229345
        )
            
View_Helper_Entries #22 setOption selected Test OK See details
Test result = Expected result
    [method] => setOption
    [args] => Array
        (
            [0] => Array
                (
                    [original] => def
                    [page] => 123
                    [volume] => 9
                )

            [1] => 1
        )

    [comment] => selected
    [result] => Array
        (
            [selected] => 1
            [text] => def
            [value] => 123/9/214229345
        )
            
View_Helper_Entries #23 setOptions new Test OK See details
Test result = Expected result
    [method] => setOptions
    [args] => Array
        (
            [0] => Array
                (
                    [0] => Array
                        (
                            [original] => abc
                            [page] => 123
                            [volume] => 8
                        )

                    [1] => Array
                        (
                            [original] => def
                            [page] => 456
                            [volume] => 9
                        )

                )

        )

    [comment] => new
    [result] => Array
        (
            [0] => Array
                (
                    [selected] => 
                    [text] => abc
                    [value] => 123/8/891568578
                )

            [1] => Array
                (
                    [selected] => 
                    [text] => def
                    [value] => 456/9/214229345
                )

        )
            
View_Helper_Entries #24 setOptions added and selected Test OK See details
Test result = Expected result
    [method] => setOptions
    [args] => Array
        (
            [0] => Array
                (
                    [0] => Array
                        (
                            [original] => abc
                            [page] => 123
                            [volume] => 8
                        )

                    [1] => Array
                        (
                            [original] => def
                            [page] => 456
                            [volume] => 9
                        )

                )

            [1] => Array
                (
                    [0] => Array
                        (
                            [selected] => 
                            [text] => ijk
                            [value] => 111/22/333333333
                        )

                    [1] => Array
                        (
                            [selected] => 
                            [text] => lmn
                            [value] => 444/55/666666666
                        )

                )

            [2] => 1
        )

    [comment] => added and selected
    [result] => Array
        (
            [0] => Array
                (
                    [selected] => 
                    [text] => ijk
                    [value] => 111/22/333333333
                )

            [1] => Array
                (
                    [selected] => 
                    [text] => lmn
                    [value] => 444/55/666666666
                )

            [2] => Array
                (
                    [selected] => 
                    [text] => abc
                    [value] => 123/8/891568578
                )

            [3] => Array
                (
                    [selected] => 1
                    [text] => def
                    [value] => 456/9/214229345
                )

        )
            
Home Introduction Options Print About Contact Powered by PHP 8.3.9 (0.1 s) Creative Commons License 2008-2017 Michel Corne