[php-phpunit-PHPUnit/el6/master] update to 3.5.6

Remi Collet remi at fedoraproject.org
Mon Dec 20 17:56:08 UTC 2010


commit 9e0758795f4f9b5f262abcd5a80abdde5c4c10a5
Author: remi <fedora at famillecollet.com>
Date:   Mon Dec 20 18:49:43 2010 +0100

    update to 3.5.6

 .gitignore               |    1 +
 ChangeLog.markdown       |   95 ++++++++++++++++++++++++++++++++++++++++++++
 README.markdown          |   99 +++++++--------------------------------------
 php-phpunit-PHPUnit.spec |   24 +++++++----
 sources                  |    2 +-
 5 files changed, 129 insertions(+), 92 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 6a74645..7786d9f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
 package*.xml
 /PHPUnit-3.5.4.tgz
 /PHPUnit-3.5.5.tgz
+/PHPUnit-3.5.6.tgz
diff --git a/ChangeLog.markdown b/ChangeLog.markdown
new file mode 100644
index 0000000..cd8c99b
--- /dev/null
+++ b/ChangeLog.markdown
@@ -0,0 +1,95 @@
+PHPUnit 3.5
+===========
+
+This is the list of changes for the PHPUnit 3.5 release series.
+
+PHPUnit 3.5.6
+-------------
+
+* Fixed GH-87: Fatal error when calling `isPublic()` on dynamically created variable.
+* Properly marked `assertType()` and `assertNotType()` as well as `assertAttributeType()` and `assertAttributeNotType()` as deprecated. These assertions will removed in PHPUnit 3.6 and should no longer be used. `assertInternalType()` should be used for asserting internal types such as `integer` or `string` whereas `assertInstanceOf()` should be used for asserting that an object is an instance of a specified class or interface.
+
+PHPUnit 3.5.5
+-------------
+
+* Added support for `getMockForAbstractClass()` to the mock builder API.
+
+PHPUnit 3.5.4
+-------------
+
+* Added a ticket listener that interacts with the Trac issue API.
+* Added support for `E_USER_NOTICE` and `E_USER_WARNING` to `PHPUnit_Framework_Error_Notice` and `PHPUnit_Framework_Error_Warning`, respectively.
+* Refactored test dependency handling (required for a bugfix in `PHPUnit_Selenium`).
+* Fixed `--stop-on-failure`.
+
+PHPUnit 3.5.3
+-------------
+
+* Fixed GH-13: Result XML inconsistent when data provider returns empty array or does not exist.
+* Fixed the skeleton generator for tested classes.
+* Strict mode is now compatible with process isolation.
+* Worked around http://bugs.php.net/bug.php?id=52911 to make process isolation work on Windows.
+
+PHPUnit 3.5.2
+-------------
+
+* Tests that are incomplete or skipped no longer yield code coverage in strict mode.
+* Fixed GH-34: Bogus bootstrap file raises cryptic error.
+
+PHPUnit 3.5.1
+-------------
+
+* Fixed GH-30: `--repeat` option does not work.
+* Fixed GH-47: Failure message ignored in `assertSelectCount()`.
+* Fixed GH-48: Remove strict incomplete duplication.
+
+PHPUnit 3.5.0
+-------------
+
+* Implemented TRAC-834: Refactor collection, processing, and rendering of code coverage information using the [PHP_CodeCoverage](http://github.com/sebastianbergmann/php-code-coverage) component.
+* Implemented TRAC-948: Add D-BUS test listener.
+* Implemented TRAC-967: Only populate whitelist when code coverage is used.
+* Implemented TRAC-985: Sort arrays before diff.
+* Implemented TRAC-1033: Supplement commandline option `--stop-on-error` and friends.
+* Implemented TRAC-1038: Add `assertInstanceOf()`, `assertAttributeInstanceOf()`, `assertNotInstanceOf()`, and `assertAttributeNotInstanceOf()` as well as `assertInternalType()`, `assertAttributeInternalType()`, `assertNotInternalType()`, and `assertAttributeNotInternalType()`.
+* Implemented TRAC-1039: Added support for `regexpi:` matcher to Selenium RC driver.
+* Implemented TRAC-1078: Added support for setting superglobals via the XML configuration file.
+* Added support for mocking/stubbing of static methods. This requires PHP 5.3 and late static binding.
+* Added `assertStringMatchesFormat()` and `assertStringNotMatchesFormat()` as well as `assertStringMatchesFormatFile()` and `assertStringNotMatchesFormatFile()` for `EXPECTF`-like (`run-tests.php`) format string matching.
+* Added `assertEmpty()` and `assertNotEmpty()` as well as `assertAttributeEmpty()` and `assertAttributeNotEmpty()`.
+* Added the `@expectedExceptionCode` and `@expectedExceptionMessage` annotations.
+* Added support for the [XML format of mysqldump](http://dev.mysql.com/doc/refman/5.1/en/mysqldump.html#option_mysqldump_xml) to the database extension.
+* Added the `<includePath>` element to the `<php>` section of the XML configuration file.
+* Added the `verbose` attribute to the `<phpunit>` element of the XML configuration file.
+* Added a ticket listener that interacts with the GitHub issue API.
+* Added a ticket listener that interacts with the GoogleCode issue API.
+* Added a test listener that uses [XHProf](http://mirror.facebook.net/facebook/xhprof/doc.html) to profile the tested code.
+* Added the `--strict` switch to mark tests that perform no assertions as incomplete.
+* The paths in the XML configuration file can now be relative to the directory that contains the XML configuration file.
+* The `@author` annotation is now an alias for `@group` allowing to filter tests based on their authors.
+* The `PHPUnit_Extensions_SeleniumTestCase::$autoStop` flag has been removed, please start Selenium RC with `-browserSessionReuse` instead.
+* The `--log-metrics` and `--log-pmd` switches have been removed. Their functionality has been or will be merged into [PHP_Depend](http://pdepend.org/) and [PHPMD](http://phpmd.org/). Details can be found [here](http://sebastian-bergmann.de/archives/744-On-PHPUnit-and-Software-Metrics.html).
+* The `--ansi` switch has been removed, please use `--colors` instead.
+* The `--coverage-source` switch has been removed.
+* The `--coverage-xml` switch has been removed, please use `--coverage-clover` instead.
+* The `--log-graphviz` switch has been removed.
+* The `--log-xml` switch has been removed, please use `--log-junit` instead.
+* The `--report` switch has been removed, please use `--coverage-html` instead.
+* The `--skeleton` switch has been removed, please use `--skeleton-test` instead.
+* The `TestListener` implementation that logs to [PEAR::Log](http://pear.php.net/package/Log) sinks has been removed.
+* The test database functionality has been removed.
+* The shared fixture functionality has been removed.
+* `PHPUnit_Extensions_PerformanceTestCase` has been removed.
+* `PHPUnit_Extensions_TicketListener_Trac` has been removed.
+* The `PHPUnit_Extensions_Story_TestCase` functionality has been deprecated.
+* Replaced `PHPUnit_Framework_MockObject` with the [PHPUnit_MockObject](http://github.com/sebastianbergmann/phpunit-mock-objects) component.
+* Replaced `PHPUnit_Extensions_Database_TestCase` with the [DbUnit](http://github.com/sebastianbergmann/dbunit) component.
+* Replaced `PHPUnit_Extensions_SeleniumTestCase` with the [PHPUnit_Selenium](http://github.com/sebastianbergmann/phpunit-selenium) component.
+* Replaced `PHPUnit_Util_FilterIterator` with the [PHP_FileIterator](http://github.com/sebastianbergmann/php-file-iterator) component.
+* Replaced `PHPUnit_Util_Template` with the [Text_Template](http://github.com/sebastianbergmann/php-text-template) component.
+* Replaced `PHPUnit_Util_Timer` with the [PHP_Timer](http://github.com/sebastianbergmann/php-timer) component.
+* Fixed TRAC-1068: `assertSame()` on two floats does not print the error message.
+* Fixed GH-7: Code paths that create a `PHPUnit_Framework_Warning` end up serializing/unserializing globals unconditionally.
+* PHPUnit now requires PHP 5.2.7 (or later) but PHP 5.3.3 (or later) is highly recommended.
+* PHPUnit now uses an autoloader to load its classes. If the tested code requires an autoloader, use `spl_autoload_register()` to register it.
+* `PHPUnit/Framework.php` should no longer be included by test code. If needed, include `PHPUnit/Autoload.php` to make PHPUnit's autoloader available.
diff --git a/README.markdown b/README.markdown
index 1e80f8a..69da301 100644
--- a/README.markdown
+++ b/README.markdown
@@ -1,89 +1,22 @@
-PHPUnit 3.5
-===========
+PHPUnit
+=======
 
-This is the list of changes for the PHPUnit 3.5 release series.
+PHPUnit is the de-facto standard for unit testing in PHP projects. 
+It provides both a framework that makes the writing of tests easy
+as well as the functionality to easily run the tests and analyse
+their results.
 
-PHPUnit 3.5.5
--------------
-
-* Added support for `getMockForAbstractClass()` to the mock builder API.
 
-PHPUnit 3.5.4
+Documentation
 -------------
 
-* Added a ticket listener that interacts with the Trac issue API.
-* Added support for `E_USER_NOTICE` and `E_USER_WARNING` to `PHPUnit_Framework_Error_Notice` and `PHPUnit_Framework_Error_Warning`, respectively.
-* Refactored test dependency handling (required for a bugfix in `PHPUnit_Selenium`).
-* Fixed `--stop-on-failure`.
-
-PHPUnit 3.5.3
--------------
-
-* Fixed GH-13: Result XML inconsistent when data provider returns empty array or does not exist.
-* Fixed the skeleton generator for tested classes.
-* Strict mode is now compatible with process isolation.
-* Worked around http://bugs.php.net/bug.php?id=52911 to make process isolation work on Windows.
-
-PHPUnit 3.5.2
--------------
-
-* Tests that are incomplete or skipped no longer yield code coverage in strict mode.
-* Fixed GH-34: Bogus bootstrap file raises cryptic error.
-
-PHPUnit 3.5.1
--------------
-
-* Fixed GH-30: `--repeat` option does not work.
-* Fixed GH-47: Failure message ignored in `assertSelectCount()`.
-* Fixed GH-48: Remove strict incomplete duplication.
-
-PHPUnit 3.5.0
--------------
+The documentation for PHPUnit is available in different formats:
 
-* Implemented TRAC-834: Refactor collection, processing, and rendering of code coverage information using the [PHP_CodeCoverage](http://github.com/sebastianbergmann/php-code-coverage) component.
-* Implemented TRAC-948: Add D-BUS test listener.
-* Implemented TRAC-967: Only populate whitelist when code coverage is used.
-* Implemented TRAC-985: Sort arrays before diff.
-* Implemented TRAC-1033: Supplement commandline option `--stop-on-error` and friends.
-* Implemented TRAC-1038: Add `assertInstanceOf()`, `assertAttributeInstanceOf()`, `assertNotInstanceOf()`, and `assertAttributeNotInstanceOf()` as well as `assertInternalType()`, `assertAttributeInternalType()`, `assertNotInternalType()`, and `assertAttributeNotInternalType()`.
-* Implemented TRAC-1039: Added support for `regexpi:` matcher to Selenium RC driver.
-* Implemented TRAC-1078: Added support for setting superglobals via the XML configuration file.
-* Added support for mocking/stubbing of static methods. This requires PHP 5.3 and late static binding.
-* Added `assertStringMatchesFormat()` and `assertStringNotMatchesFormat()` as well as `assertStringMatchesFormatFile()` and `assertStringNotMatchesFormatFile()` for `EXPECTF`-like (`run-tests.php`) format string matching.
-* Added `assertEmpty()` and `assertNotEmpty()` as well as `assertAttributeEmpty()` and `assertAttributeNotEmpty()`.
-* Added the `@expectedExceptionCode` and `@expectedExceptionMessage` annotations.
-* Added support for the [XML format of mysqldump](http://dev.mysql.com/doc/refman/5.1/en/mysqldump.html#option_mysqldump_xml) to the database extension.
-* Added the `<includePath>` element to the `<php>` section of the XML configuration file.
-* Added the `verbose` attribute to the `<phpunit>` element of the XML configuration file.
-* Added a ticket listener that interacts with the GitHub issue API.
-* Added a ticket listener that interacts with the GoogleCode issue API.
-* Added a test listener that uses [XHProf](http://mirror.facebook.net/facebook/xhprof/doc.html) to profile the tested code.
-* Added the `--strict` switch to mark tests that perform no assertions as incomplete.
-* The paths in the XML configuration file can now be relative to the directory that contains the XML configuration file.
-* The `@author` annotation is now an alias for `@group` allowing to filter tests based on their authors.
-* The `PHPUnit_Extensions_SeleniumTestCase::$autoStop` flag has been removed, please start Selenium RC with `-browserSessionReuse` instead.
-* The `--log-metrics` and `--log-pmd` switches have been removed. Their functionality has been or will be merged into [PHP_Depend](http://pdepend.org/) and [PHPMD](http://phpmd.org/). Details can be found [here](http://sebastian-bergmann.de/archives/744-On-PHPUnit-and-Software-Metrics.html).
-* The `--ansi` switch has been removed, please use `--colors` instead.
-* The `--coverage-source` switch has been removed.
-* The `--coverage-xml` switch has been removed, please use `--coverage-clover` instead.
-* The `--log-graphviz` switch has been removed.
-* The `--log-xml` switch has been removed, please use `--log-junit` instead.
-* The `--report` switch has been removed, please use `--coverage-html` instead.
-* The `--skeleton` switch has been removed, please use `--skeleton-test` instead.
-* The `TestListener` implementation that logs to [PEAR::Log](http://pear.php.net/package/Log) sinks has been removed.
-* The test database functionality has been removed.
-* The shared fixture functionality has been removed.
-* `PHPUnit_Extensions_PerformanceTestCase` has been removed.
-* `PHPUnit_Extensions_TicketListener_Trac` has been removed.
-* The `PHPUnit_Extensions_Story_TestCase` functionality has been deprecated.
-* Replaced `PHPUnit_Framework_MockObject` with the [PHPUnit_MockObject](http://github.com/sebastianbergmann/phpunit-mock-objects) component.
-* Replaced `PHPUnit_Extensions_Database_TestCase` with the [DbUnit](http://github.com/sebastianbergmann/dbunit) component.
-* Replaced `PHPUnit_Extensions_SeleniumTestCase` with the [PHPUnit_Selenium](http://github.com/sebastianbergmann/phpunit-selenium) component.
-* Replaced `PHPUnit_Util_FilterIterator` with the [PHP_FileIterator](http://github.com/sebastianbergmann/php-file-iterator) component.
-* Replaced `PHPUnit_Util_Template` with the [Text_Template](http://github.com/sebastianbergmann/php-text-template) component.
-* Replaced `PHPUnit_Util_Timer` with the [PHP_Timer](http://github.com/sebastianbergmann/php-timer) component.
-* Fixed TRAC-1068: `assertSame()` on two floats does not print the error message.
-* Fixed GH-7: Code paths that create a `PHPUnit_Framework_Warning` end up serializing/unserializing globals unconditionally.
-* PHPUnit now requires PHP 5.2.7 (or later) but PHP 5.3.3 (or later) is highly recommended.
-* PHPUnit now uses an autoloader to load its classes. If the tested code requires an autoloader, use `spl_autoload_register()` to register it.
-* `PHPUnit/Framework.php` should no longer be included by test code. If needed, include `PHPUnit/Autoload.php` to make PHPUnit's autoloader available.
+* [English, multiple HTML files](http://www.phpunit.de/manual/3.5/en/index.html)
+* [English, single HTML file](http://www.phpunit.de/manual/3.5/en/phpunit-book.html)
+* [English, PDF](http://www.phpunit.de/manual/3.5/en/phpunit-book.pdf)
+* [English, ePub](http://www.phpunit.de/manual/3.5/en/phpunit-book.epub)
+* [Japanese, multiple HTML files](http://www.phpunit.de/manual/3.5/ja/index.html)
+* [Japanese, single HTML file](http://www.phpunit.de/manual/3.5/ja/phpunit-book.html)
+* [Japanese, PDF](http://www.phpunit.de/manual/3.5/ja/phpunit-book.pdf)
+* [Japanese, ePub](http://www.phpunit.de/manual/3.5/ja/phpunit-book.epub)
diff --git a/php-phpunit-PHPUnit.spec b/php-phpunit-PHPUnit.spec
index 5919fe6..4913461 100644
--- a/php-phpunit-PHPUnit.spec
+++ b/php-phpunit-PHPUnit.spec
@@ -3,7 +3,7 @@
 %global channel pear.phpunit.de
 
 Name:           php-phpunit-PHPUnit
-Version:        3.5.5
+Version:        3.5.6
 Release:        1%{?dist}
 Summary:        Regression testing framework for unit tests
 
@@ -11,7 +11,11 @@ Group:          Development/Libraries
 License:        BSD
 URL:            http://www.phpunit.de
 Source0:        http://pear.phpunit.de/get/%{pear_name}-%{version}.tgz
-Source1:        https://github.com/sebastianbergmann/phpunit/raw/%{version}/README.markdown
+# From https://github.com/sebastianbergmann/phpunit/raw/3.5.6/README.markdown
+# but with "Installation" part removed
+Source1:        README.markdown
+Source2:        https://github.com/sebastianbergmann/phpunit/raw/%{version}/ChangeLog.markdown
+
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
@@ -53,7 +57,8 @@ for the creation, execution and analysis of Unit Tests.
 
 %prep
 %setup -qc
-cp %{SOURCE1} README.markdown
+cp %{SOURCE1} README
+cp %{SOURCE2} CHANGELOG
 
 # Create a "localized" php.ini to avoid build warning
 cp /etc/php.ini .
@@ -75,15 +80,12 @@ cd %{pear_name}-%{version}
 
 
 %install
-rm -rf $RPM_BUILD_ROOT docdir
+rm -rf $RPM_BUILD_ROOT
 cd %{pear_name}-%{version}
 
 # Install Package
 PHPRC=../php.ini %{__pear} install --nodeps --packagingroot $RPM_BUILD_ROOT %{name}.xml
 
-# Move documentation
-mv $RPM_BUILD_ROOT%{pear_docdir}/%{pear_name} ../docdir
-
 # Clean up unnecessary files
 rm -rf $RPM_BUILD_ROOT%{pear_phpdir}/.??*
 
@@ -115,13 +117,19 @@ fi
 
 %files
 %defattr(-,root,root,-)
-%doc docdir/* README.markdown
+%doc README CHANGELOG
 %{pear_xmldir}/%{name}.xml
 %{pear_phpdir}/%{pear_name}
 %{_bindir}/phpunit
 
 
 %changelog
+* Mon Dec 20 2010 Remi Collet <Fedora at famillecollet.com> - 3.5.6-1
+- Version 3.5.6 (stable) - API 3.5.4 (stable)
+- move README.mardown to README (was Changelog, now links to doc)
+- add CHANGELOG
+- not more doc provided by upstream
+
 * Mon Nov 22 2010 Remi Collet <Fedora at famillecollet.com> - 3.5.5-1
 - Version 3.5.5 (stable) - API 3.5.4 (stable)
 
diff --git a/sources b/sources
index ff90dec..28c7ef5 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-a66b1b02911e24c49c98ff0a8cdf148c  PHPUnit-3.5.5.tgz
+6884067a803d47f1e2d80702fa135eea  PHPUnit-3.5.6.tgz


More information about the scm-commits mailing list