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