Commit Graph

43 Commits

Author SHA1 Message Date
Sebastian Bergmann d6ffa41b14
Use SplObjectStorage::offsetSet() instead of deprecated SplObjectStorage::attach() 2025-09-22 07:13:00 +02:00
Sebastian Bergmann ec175443bf
Suppress warning 2025-09-22 07:12:09 +02:00
Sebastian Bergmann 8097ec96c0
Merge branch '3.1' into 4.0 2022-09-14 08:02:51 +02:00
Michael Voříšek a9f4590ffb Fix float export precision 2022-09-14 07:34:49 +02:00
Sebastian Bergmann 44131c410c
PHP 7.0 does not support void return type 2021-11-11 14:47:20 +01:00
Sebastian Bergmann dd7b15e57f
Revert "Fix CS/WS issues"
This reverts commit 55a5916c01.
2021-11-11 14:46:33 +01:00
jrfnl 967ffc8eae Improve export of closed resources
Fixes 36
2021-11-11 14:13:43 +01:00
Sebastian Bergmann 55a5916c01
Fix CS/WS issues 2021-11-11 14:08:23 +01:00
Sebastian Bergmann d9a816b460
Update PHPUnit 2021-11-11 13:41:50 +01:00
jrfnl 8535229308 Improve export of closed resources (for 3.x)
As the 3.x branch has a minimum PHP version of PHP 7.0 and the `resource (closed)` return value for `gettype()` was only introduced in PHP 7.2, a slightly more involved solution for the same is needed for the 3.x branch.

The methods I'm adding are based on code I've used to polyfill the `assertClosedResource()` assertion in the PHPUnit Polyfills and has been (and still is) extensively tested there.

Fixes 36
2021-11-11 13:33:13 +01:00
Sebastian Bergmann e76377d976
Fix CS/WS issues 2021-05-04 17:48:27 +02:00
Sebastian Bergmann 1458e91ffc Use assertMatchesRegularExpression() 2020-06-22 16:36:44 +02:00
Sebastian Bergmann 9372d519fe Fix CS/WS issues 2020-06-22 16:36:01 +02:00
Andreas Möller 7b5ae5488b Fix: Run friendsofphp/php-cs-fixer 2020-02-09 07:39:11 +01:00
Sebastian Bergmann 9e4fcd44e2 Drop support for PHP 7.0, PHP 7.1, and PHP 7.2 2020-01-21 08:57:59 +01:00
Claudio Zizza ab186b26f4 Increase code coverage 2019-09-08 14:59:02 +02:00
Sebastian Bergmann 636773fb0b Revert "Cleanup"
This reverts commit ff5bade60c.
2019-08-14 17:08:01 +02:00
Sebastian Bergmann ff5bade60c Cleanup 2019-08-14 16:54:55 +02:00
Bernhard Schussek 71e429fb3a Exclude trace from exceptions/errors for performance reasons (#24) 2019-08-11 14:37:44 +02:00
Sebastian Bergmann 00930b5231 Fix CS/WS issues 2018-06-28 10:18:04 -04:00
Mariano Custiel 4722899d45 Added visible representation of line endings for diffs (#19)
* Added visible representation of line endings for diffs

* Added fix to avoid the Replacement order gotcha from str_replace

* cs-fixer

* Fixed expectation of shortened string

* I misunderstood the problem, the length of the string now is longer because we are showing \n and \r characters
2017-04-03 15:13:50 +02:00
Sebastian Bergmann fad9919ef2 Cleanup 2017-02-24 13:51:35 +01:00
KUBO Atsuhiro b4a7e5bad0 Update ExporterTest::testShortenedExportForMultibyteCharacters() to use trimNewline() 2015-07-30 11:57:53 +02:00
KUBO Atsuhiro 7237569678 Add "@requires extension mbstring" to testShortenedExportForMultibyteCharacters() 2015-07-30 11:57:45 +02:00
KUBO Atsuhiro d5bb3eac03 Add a test case for multibyte character support for Exporter::shortenedExport() 2015-07-30 11:57:37 +02:00
KUBO Atsuhiro 2348488730 Add multibyte character support for Exporter::shortenedExport() 2015-07-30 11:57:30 +02:00
Sebastian Bergmann e469f62cdd Add missing docblock 2015-01-24 10:44:01 +01:00
Sebastian Bergmann 4e1dcac9ea Add missing test case 2015-01-24 10:43:29 +01:00
Sebastian Bergmann bdc886f84e Refactor utility method 2015-01-24 10:41:08 +01:00
Sebastian Bergmann e36555c44b Add missing test case 2015-01-24 10:39:15 +01:00
Sebastian Bergmann 99aac416d2 Tweak test suite configuration 2015-01-23 08:22:39 +01:00
Sebastian Bergmann b13d97acce Fix CS/WS issues 2015-01-23 08:18:47 +01:00
Henrique Moody e496347843 Update license and copyright in all files 2015-01-01 07:31:48 -02:00
Sebastian Bergmann 13e2857ac9 Workaround for "Nesting level too deep - recursive dependency?" fatal error on PHP 5.3.3 2014-04-18 11:45:21 +02:00
Jeff Welch 96262075d7 Bump copyright year. 2014-02-11 04:35:07 -05:00
Jeff Welch 1ea51dd3c4 Removed references to old repos. 2013-11-06 04:43:40 -05:00
Jeff Welch ded61126bd Type juggling
* Fixes 6732d996b0 (commitcomment-2642315)
2013-02-18 12:48:31 -05:00
Jeff Welch 6732d996b0 Bug fixes.
* Account for `\0gcdata` property in SplObjectStorage (This was causing the failure described here: https://github.com/sebastianbergmann/phpunit/pull/773#issuecomment-11991472)
 * Prevent foreach from corrupting `SplObjectStorage` objects when converting to an array.
2013-02-18 10:17:29 -05:00
Sebastian Bergmann 1c900e4cce Refactor 2013-02-16 17:23:39 +01:00
Sebastian Bergmann e3a448070b Cleanup 2013-02-16 11:03:12 +01:00
Jeff Welch 6ad7d7ea8b Preparing for transfer to @sebastianbergmann. 2013-02-15 18:23:38 -05:00
Jeff Welch ac6e671206 `JeffWelch` namespace is now `Whatthejeff`. 2013-02-10 20:26:19 -05:00
Sebastian Bergmann ff3b279a9c Add support for installation using the PEAR Installer (and cleanups) 2013-02-09 05:53:35 -05:00