[Tests] Add the possibility of pass custom PHPUnit arguments via environment var.

set PHPUNIT_OPTS=--exclude-group=slow
sync svn r24794,r24830
ZF-11376: Fix XHTML document detection when beginning with XML declaration
ZF-12106: DomQuery fails to evaluate XPath when there are warnings
update DocComment in SharedEventManager
enable DOMXPath::registerPhpFunctions in Zend\Dom\Query
sync svn r23559 - ZF-10848 removing trailing whitespace from docblocks generated
Annotation support for new features
Added common form elements which do not exist yet.
Add annotation for Validation Group
Add support for fieldsets to have hydrator and object
ZF2-387 classmap_generator.php does not detect multiple classes in a single file

added support for multiple classes in a single php file
added support for multiple namespaces in a single php file
added tests
refactored classmap-generator
Updated to Match Zend\Http\Response methods
[Mail] Remove encoding implementation for headers without encoding
[CS][library] Remove @copyright & @license

for fl in $(find . -name "*.php"); do mv $fl $fl.old;       sed '/@copyright/d' $fl.old > $fl;       rm -f $fl.old; done;
for fl in $(find . -name "*.php"); do mv $fl $fl.old;       sed '/@license/d' $fl.old > $fl;       rm -f $fl.old; done;
[CS][Library] Set File Header

http://framework.zend.com/wiki/display/ZFDEV2/Coding+Standards#CodingStandards-Files

The following script replaces the content between PHP open tag and namespace declaration.

for COMPONENT in $(ls -d *)
do
    for FILE in $(find $COMPONENT -name "*.php")
    do
        BLOCK="\/\*\*\n \* Zend Framework \(http:\/\/framework\.zend\.com\/\)\n \*\n \* \@link      http:\/\/github\.com\/zendframework\/zf2 for the canonical source repository\n \* \@copyright Copyright \(c\) 2005-2012 Zend Technologies USA Inc\. \(http:\/\/www\.zend\.com\)\n \* \@license   http:\/\/framework\.zend\.com\/license\/new-bsd New BSD License\n \* \@package   Zend_$COMPONENT\n \*\/"
        perl -0777 -i -pe "s/(<\?php(\s*.*)*\nn)/<?php\n$BLOCK\n\nn/" $FILE
    done
done
[CS][Library] Set File Header

http://framework.zend.com/wiki/display/ZFDEV2/Coding+Standards#CodingStandards-Files

The following script replaces the content of the first comment in the file (useful for files without namespace declaration)

for COMPONENT in $(ls -d *)
do
    for FILE in $(find $COMPONENT -name "*.php")
    do
        BLOCK="\/\*\*\n \* Zend Framework \(http:\/\/framework\.zend\.com\/\)\n \*\n \* \@link      http:\/\/github\.com\/zendframework\/zf2 for the canonical source repository\n \* \@copyright Copyright \(c\) 2005-2012 Zend Technologies USA Inc\. \(http:\/\/www\.zend\.com\)\n \* \@license   http:\/\/framework\.zend\.com\/license\/new-bsd New BSD License\n \* \@package   Zend_$COMPONENT\n \*\/"
        perl -0777 -i -pe "s/(\/\*\*(\s*\*.*)*\/)/$BLOCK/" $FILE
    done
done
[CS][test] Remove @copyright & @license

for fl in $(find . -name "*.php"); do mv $fl $fl.old;       sed '/@copyright/d' $fl.old > $fl;       rm -f $fl.old; done;
for fl in $(find . -name "*.php"); do mv $fl $fl.old;       sed '/@license/d' $fl.old > $fl;       rm -f $fl.old; done;
Delete files related with removed components
Remove recursion in ClassMethodsHydrator
[CS][Tests] Set File Header

http://framework.zend.com/wiki/display/ZFDEV2/Coding+Standards#CodingStandards-Files

The following script replaces the content between PHP open tag and namespace declaration.

for COMPONENT in $(ls -d *)
do
    for FILE in $(find $COMPONENT -name "*.php")
    do
        BLOCK="\/\*\*\n \* Zend Framework \(http:\/\/framework\.zend\.com\/\)\n \*\n \* \@link      http:\/\/github\.com\/zendframework\/zf2 for the canonical source repository\n \* \@copyright Copyright \(c\) 2005-2012 Zend Technologies USA Inc\. \(http:\/\/www\.zend\.com\)\n \* \@license   http:\/\/framework\.zend\.com\/license\/new-bsd New BSD License\n \* \@package   Zend_$COMPONENT\n \*\/"
        perl -0777 -i -pe "s/(<\?php(\s*.*)*\nn)/<?php\n$BLOCK\n\nn/" $FILE
    done
done

3 files was manually fixed
[CS][Tests] Set File Header

http://framework.zend.com/wiki/display/ZFDEV2/Coding+Standards#CodingStandards-Files

The following script replaces the content of the first comment in the file (useful for files without namespace declaration)

for COMPONENT in $(ls -d *)
do
    for FILE in $(find $COMPONENT -name "*.php")
    do
        BLOCK="\/\*\*\n \* Zend Framework \(http:\/\/framework\.zend\.com\/\)\n \*\n \* \@link      http:\/\/github\.com\/zendframework\/zf2 for the canonical source repository\n \* \@copyright Copyright \(c\) 2005-2012 Zend Technologies USA Inc\. \(http:\/\/www\.zend\.com\)\n \* \@license   http:\/\/framework\.zend\.com\/license\/new-bsd New BSD License\n \* \@package   Zend_$COMPONENT\n \*\/"
        perl -0777 -i -pe "s/(\/\*\*(\s*\*.*)*\/)/$BLOCK/" $FILE
    done
done