]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - tests/PHPUnit/ChangeLog.markdown
Release 6.2.0
[Github/sugarcrm.git] / tests / PHPUnit / ChangeLog.markdown
1 PHPUnit 3.5
2 ===========
3
4 This is the list of changes for the PHPUnit 3.5 release series.
5
6 PHPUnit 3.5.13
7 --------------
8
9 * The `--debug` switch is now "public" (listed in `--help`).
10
11 PHPUnit 3.5.12
12 --------------
13
14 * Fixed GH-14: Weird `RuntimeException` when running test suite with process isolation.
15 * Fixed GH-27: Process isolation does not work on Windows 7 x64.
16 * Fixed GH-41: Process isolation on Windows does not work.
17 * Fixed GH-147: Parse error when using process isolation on Windows.
18
19 PHPUnit 3.5.11
20 --------------
21
22 * Fixed GH-127: PHPUnit does not report errors in XML configuration files.
23 * Fixed an issue with ticket listeners related to tests that use data providers.
24 * Updated list of dependencies in `package.xml` and added missing runtime checks for optional dependencies.
25
26 PHPUnit 3.5.10
27 --------------
28
29 * Fixed GH-71: `PHPUnit_Framework_TestSuite::addTestFile()` has problems identifying the correct test suite.
30 * Fixed GH-120: Printer class does not handle "file does not exist" problems correctly.
31 * Fixed GH-125: Work around [PHP bug #47987](http://bugs.php.net/bug.php?id=47987).
32
33 PHPUnit 3.5.9
34 -------------
35
36 * Fixed GH-17: Process Isolation breaks for global objects that implement the `Serializable` interface.
37 * Fixed GH-64: `./` added to path to test when using PHPUnit on Windows terminal.
38 * Fixed GH-104: Bootstrap must be relative to the current directory.
39
40 PHPUnit 3.5.8
41 -------------
42
43 * Fixed GH-84: If no assertions are made the code should not be marked as covered.
44 * Fixed GH-115: Make most of the attributes in `PHPUnit_Framework_TestCase` private.
45
46 PHPUnit 3.5.7
47 -------------
48
49 * Implemented GH-103: Improved handling of deprecated PHPUnit features.
50 * Fixed GH-100: `assertSame()` does not give useful output on misordered arrays.
51 * Fixed GH-105: Backup of static attributes causes memory exhaustion.
52 * The TextUI test runner now prints the normal progress output in verbose mode.
53
54 PHPUnit 3.5.6
55 -------------
56
57 * Fixed GH-87: Fatal error when calling `isPublic()` on dynamically created variable.
58 * 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.
59
60 PHPUnit 3.5.5
61 -------------
62
63 * Added support for `getMockForAbstractClass()` to the mock builder API.
64
65 PHPUnit 3.5.4
66 -------------
67
68 * Added a ticket listener that interacts with the Trac issue API.
69 * Added support for `E_USER_NOTICE` and `E_USER_WARNING` to `PHPUnit_Framework_Error_Notice` and `PHPUnit_Framework_Error_Warning`, respectively.
70 * Refactored test dependency handling (required for a bugfix in `PHPUnit_Selenium`).
71 * Fixed `--stop-on-failure`.
72
73 PHPUnit 3.5.3
74 -------------
75
76 * Fixed GH-13: Result XML inconsistent when data provider returns empty array or does not exist.
77 * Fixed the skeleton generator for tested classes.
78 * Strict mode is now compatible with process isolation.
79 * Worked around http://bugs.php.net/bug.php?id=52911 to make process isolation work on Windows.
80
81 PHPUnit 3.5.2
82 -------------
83
84 * Tests that are incomplete or skipped no longer yield code coverage in strict mode.
85 * Fixed GH-34: Bogus bootstrap file raises cryptic error.
86
87 PHPUnit 3.5.1
88 -------------
89
90 * Fixed GH-30: `--repeat` option does not work.
91 * Fixed GH-47: Failure message ignored in `assertSelectCount()`.
92 * Fixed GH-48: Remove strict incomplete duplication.
93
94 PHPUnit 3.5.0
95 -------------
96
97 * Implemented TRAC-834: Refactor collection, processing, and rendering of code coverage information using the [PHP_CodeCoverage](http://github.com/sebastianbergmann/php-code-coverage) component.
98 * Implemented TRAC-948: Add D-BUS test listener.
99 * Implemented TRAC-967: Only populate whitelist when code coverage is used.
100 * Implemented TRAC-985: Sort arrays before diff.
101 * Implemented TRAC-1033: Supplement commandline option `--stop-on-error` and friends.
102 * Implemented TRAC-1038: Add `assertInstanceOf()`, `assertAttributeInstanceOf()`, `assertNotInstanceOf()`, and `assertAttributeNotInstanceOf()` as well as `assertInternalType()`, `assertAttributeInternalType()`, `assertNotInternalType()`, and `assertAttributeNotInternalType()`.
103 * Implemented TRAC-1039: Added support for `regexpi:` matcher to Selenium RC driver.
104 * Implemented TRAC-1078: Added support for setting superglobals via the XML configuration file.
105 * Added support for mocking/stubbing of static methods. This requires PHP 5.3 and late static binding.
106 * Added `assertStringMatchesFormat()` and `assertStringNotMatchesFormat()` as well as `assertStringMatchesFormatFile()` and `assertStringNotMatchesFormatFile()` for `EXPECTF`-like (`run-tests.php`) format string matching.
107 * Added `assertEmpty()` and `assertNotEmpty()` as well as `assertAttributeEmpty()` and `assertAttributeNotEmpty()`.
108 * Added the `@expectedExceptionCode` and `@expectedExceptionMessage` annotations.
109 * 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.
110 * Added the `<includePath>` element to the `<php>` section of the XML configuration file.
111 * Added the `verbose` attribute to the `<phpunit>` element of the XML configuration file.
112 * Added a ticket listener that interacts with the GitHub issue API.
113 * Added a ticket listener that interacts with the GoogleCode issue API.
114 * Added a test listener that uses [XHProf](http://mirror.facebook.net/facebook/xhprof/doc.html) to profile the tested code.
115 * Added the `--strict` switch to mark tests that perform no assertions as incomplete.
116 * The paths in the XML configuration file can now be relative to the directory that contains the XML configuration file.
117 * The `@author` annotation is now an alias for `@group` allowing to filter tests based on their authors.
118 * The `PHPUnit_Extensions_SeleniumTestCase::$autoStop` flag has been removed, please start Selenium RC with `-browserSessionReuse` instead.
119 * 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).
120 * The `--ansi` switch has been removed, please use `--colors` instead.
121 * The `--coverage-source` switch has been removed.
122 * The `--coverage-xml` switch has been removed, please use `--coverage-clover` instead.
123 * The `--log-graphviz` switch has been removed.
124 * The `--log-xml` switch has been removed, please use `--log-junit` instead.
125 * The `--report` switch has been removed, please use `--coverage-html` instead.
126 * The `--skeleton` switch has been removed, please use `--skeleton-test` instead.
127 * The `TestListener` implementation that logs to [PEAR::Log](http://pear.php.net/package/Log) sinks has been removed.
128 * The test database functionality has been removed.
129 * The shared fixture functionality has been removed.
130 * `PHPUnit_Extensions_PerformanceTestCase` has been removed.
131 * `PHPUnit_Extensions_TicketListener_Trac` has been removed.
132 * The `PHPUnit_Extensions_Story_TestCase` functionality has been deprecated.
133 * Replaced `PHPUnit_Framework_MockObject` with the [PHPUnit_MockObject](http://github.com/sebastianbergmann/phpunit-mock-objects) component.
134 * Replaced `PHPUnit_Extensions_Database_TestCase` with the [DbUnit](http://github.com/sebastianbergmann/dbunit) component.
135 * Replaced `PHPUnit_Extensions_SeleniumTestCase` with the [PHPUnit_Selenium](http://github.com/sebastianbergmann/phpunit-selenium) component.
136 * Replaced `PHPUnit_Util_FilterIterator` with the [PHP_FileIterator](http://github.com/sebastianbergmann/php-file-iterator) component.
137 * Replaced `PHPUnit_Util_Template` with the [Text_Template](http://github.com/sebastianbergmann/php-text-template) component.
138 * Replaced `PHPUnit_Util_Timer` with the [PHP_Timer](http://github.com/sebastianbergmann/php-timer) component.
139 * Fixed TRAC-1068: `assertSame()` on two floats does not print the error message.
140 * Fixed GH-7: Code paths that create a `PHPUnit_Framework_Warning` end up serializing/unserializing globals unconditionally.
141 * PHPUnit now requires PHP 5.2.7 (or later) but PHP 5.3.3 (or later) is highly recommended.
142 * PHPUnit now uses an autoloader to load its classes. If the tested code requires an autoloader, use `spl_autoload_register()` to register it.
143 * `PHPUnit/Framework.php` should no longer be included by test code. If needed, include `PHPUnit/Autoload.php` to make PHPUnit's autoloader available.