Deprecated: Function eregi() is deprecated in /home/lyx/www/wiki.lyx.org/farm.d/cookbook/testlist.php on line 52 Deprecated: Function eregi() is deprecated in /home/lyx/www/wiki.lyx.org/farm.d/cookbook/testlist.php on line 54 Deprecated: Function eregi() is deprecated in /home/lyx/www/wiki.lyx.org/farm.d/cookbook/testlist.php on line 55 Deprecated: Function eregi() is deprecated in /home/lyx/www/wiki.lyx.org/farm.d/cookbook/testlist.php on line 56 Deprecated: Function eregi() is deprecated in /home/lyx/www/wiki.lyx.org/farm.d/cookbook/testlist.php on line 59 Deprecated: Function eregi() is deprecated in /home/lyx/www/wiki.lyx.org/farm.d/cookbook/testlist.php on line 60 Deprecated: Function eregi() is deprecated in /home/lyx/www/wiki.lyx.org/farm.d/cookbook/testlist.php on line 62 Deprecated: Function eregi() is deprecated in /home/lyx/www/wiki.lyx.org/farm.d/cookbook/testlist.php on line 52 Deprecated: Function eregi() is deprecated in /home/lyx/www/wiki.lyx.org/farm.d/cookbook/testlist.php on line 54 Deprecated: Function eregi() is deprecated in /home/lyx/www/wiki.lyx.org/farm.d/cookbook/testlist.php on line 55 Deprecated: Function eregi() is deprecated in /home/lyx/www/wiki.lyx.org/farm.d/cookbook/testlist.php on line 56 Deprecated: Function eregi() is deprecated in /home/lyx/www/wiki.lyx.org/farm.d/cookbook/testlist.php on line 59 Deprecated: Function eregi() is deprecated in /home/lyx/www/wiki.lyx.org/farm.d/cookbook/testlist.php on line 60 Deprecated: Function eregi() is deprecated in /home/lyx/www/wiki.lyx.org/farm.d/cookbook/testlist.php on line 62 LyX wiki | TestList / TestParsingArguments
Go to page:

Search:   Help

Navigation

Groups

LyX documentation

Edit

Shared groups

Links

TestParsingArguments

<< | Page list | >>

Test that the directive properly parses its arguments

Testing the parsing of arguments:

  • Test case with only a single directory
(:attachlist Windows/LyX136 verbose=no noaction=yes:)
  • Test case with several options

This test should

(:attachlist Windows verbose=yes noaction=yes:)
$args=Array

(

    [fmt] => simple
    [verbose] => yes
    [filter] => .*
    [recurse] => no
    [case] => no
    [itemprefix] => *
    [listdirs] => yes
    [listfiles] => yes
    [#] => Array
        (
            [0] => 
            [1] => Windows
            [2] => verbose
            [3] => yes
            [4] => noaction
            [5] => yes
        )
    [] => Array
        (
            [0] => Windows
        )
    [noaction] => yes

)

dir=Windows
$opts=Array

(

    [fmt] => simple
    [recurse] => 
    [filter] => .*
    [case] => 
    [listFiles] => 1
    [listDirs] => 1
    [baseDir] => /home/lyx/www/wiki.lyx.org/uploads
    [baseURI] => uploads:
    [verbose] => 1
    [noaction] => 1
    [matchFcn] => UploadListMatchFcn
    [fmtItemFcn] => UploadListFmtItemSimple
    [fileManager] => http://wiki.lyx.org/ipfm/index.php?dir=

)

dir=Windows
Edit - History - Print - Recent Changes - All Recent Changes - Search
Page last modified on 2006-05-28 23:22 CEST