\PHPUnit_Util_Regex
Error handler that converts PHP errors and warnings to exceptions.
- Author: Márcio Almada <marcio3w@gmail.com>
- Copyright: 2001-2014 Sebastian Bergmann <sebastian@phpunit.de>
- License: http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License
Synopsis
Methods
public
History
-
2014-08-12T06:43:31+02:00 (commit #50dfaba)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
phpcbf --standard=PSR2 src tests
-
2014-05-27T07:33:39+02:00 (commit #299037d)
Author: Jeff Welch (whatthejeff@gmail.com) / Commiter: Jeff Welch (whatthejeff@gmail.com)
Formatting.
-
2014-05-27T07:29:06+02:00 (commit #5ee187a)
Author: Jeff Welch (whatthejeff@gmail.com) / Commiter: Jeff Welch (whatthejeff@gmail.com)
Fixed docblocks.
-
2014-05-27T07:09:17+02:00 (commit #f8f76b0)
Author: Jeff Welch (whatthejeff@gmail.com) / Commiter: Jeff Welch (whatthejeff@gmail.com)
Formatting.
-
2014-05-23T04:49:02+02:00 (commit #ddfa4c5)
Author: Márcio Almada (marcio3w@gmail.com) / Commiter: Márcio Almada (marcio3w@gmail.com)
move safe regex logic to it's own place, + reusability
-
2014-01-20T17:21:13+01:00 (commit #3a5808f)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Cleanup
-
2014-01-09T08:11:47+01:00 (commit #205e008)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Bump copyright year
-
2013-02-16T12:26:43+01:00 (commit #b8b3e1f)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Replace PHPUnit_Util_Type with SebastianBergmann\Exporter
-
2013-02-14T09:06:03+01:00 (commit #9a1b5d6)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Fix CS/WS
-
2013-02-06T07:42:11+01:00 (commit #9ddc623)
Author: Jeff Welch (whatthejeff@gmail.com) / Commiter: Sebastian Bergmann (whatthejeff@gmail.com)
Fixes #796 and sebastianbergmann/phpunit-mock-objects#116 * Fixed a call-time pass-by-reference issue exposed by de6d32a. * Cleaned up some slightly obfuscated code.
-
2013-02-05T09:42:36+01:00 (commit #837cb86)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Eliminate unused variables
-
2013-02-05T04:07:11+01:00 (commit #c257965)
Author: Jeff Welch (whatthejeff@gmail.com) / Commiter: Jeff Welch (whatthejeff@gmail.com)
Added resources support to `PHPUnit_Util_Type::recursiveExport()`.
-
2013-02-05T02:08:16+01:00 (commit #426da8b)
Author: Jeff Welch (whatthejeff@gmail.com) / Commiter: Jeff Welch (whatthejeff@gmail.com)
Fixes #806 * Make `PHPUnit_Util_Type` handle array references properly.
-
2013-01-30T04:47:30+01:00 (commit #21f28dd)
Author: Jeff Welch (whatthejeff@gmail.com) / Commiter: Jeff Welch (whatthejeff@gmail.com)
Fixes #796 and sebastianbergmann/phpunit-mock-objects#116 * Fixed a call-time pass-by-reference issue exposed by de6d32a. * Cleaned up some slightly obfuscated code.
-
2013-01-08T08:48:16+01:00 (commit #22bf08a)
Author: Adam Harvey (aharvey@php.net) / Commiter: Adam Harvey (aharvey@php.net)
Update the recursiveExport() output to better match the old behaviour.
-
2013-01-08T08:44:11+01:00 (commit #3a49bd1)
Author: Adam Harvey (aharvey@php.net) / Commiter: Adam Harvey (aharvey@php.net)
Use self::export() for array and property keys as the old code did.
-
2013-01-08T08:42:24+01:00 (commit #6a5dc0b)
Author: Adam Harvey (aharvey@php.net) / Commiter: Adam Harvey (aharvey@php.net)
Update object properties to be single quoted as well.
-
2013-01-08T08:41:24+01:00 (commit #07efcc2)
Author: Adam Harvey (aharvey@php.net) / Commiter: Adam Harvey (aharvey@php.net)
Remove more extraneous newlines.
-
2013-01-08T08:35:12+01:00 (commit #cd81a98)
Author: Adam Harvey (aharvey@php.net) / Commiter: Adam Harvey (aharvey@php.net)
Reinstate the previous CRLF folding behaviour in recursiveExport().
-
2013-01-08T08:33:23+01:00 (commit #571f815)
Author: Adam Harvey (aharvey@php.net) / Commiter: Adam Harvey (aharvey@php.net)
Change recursiveExport() output to be closer to what was previously there. Specifically, we don't want to move to a newline for the leading line of exported arrays and objects, and we don't want a newline before the opening parenthesis.
-
2013-01-08T08:11:18+01:00 (commit #044d8b9)
Author: Adam Harvey (aharvey@php.net) / Commiter: Adam Harvey (aharvey@php.net)
Remove the ReflectionObject stuff and hang off ::toArray(), since it handles undeclared properties correctly.
-
2013-01-08T08:11:18+01:00 (commit #f287ef3)
Author: Adam Harvey (aharvey@php.net) / Commiter: Adam Harvey (aharvey@php.net)
Alter PHPUnit_Util_Type::recursiveExport() to handle repeated and recursive data structures more gracefully (and with less memory usage).
-
2013-01-07T11:37:52+01:00 (commit #c517984)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Bump copyright year
-
2012-09-24T06:47:44+02:00 (commit #81ab540)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Do not perform string replacement for @package_version@ anymore.
-
2012-09-06T16:50:34+02:00 (commit #6f60604)
Author: Volker Dusch (github@wallbash.com) / Commiter: Volker Dusch (github@wallbash.com)
Fixes #581: Windows diffs where polluted with extra newlines
-
2012-04-30T12:02:38+02:00 (commit #5786e50)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
List The BSD 3-Clause License correctly and consistently. Thanks to Christian Aistleitner <christian@quelltextlich.at> for bringing this issue to my attention.
-
2012-01-01T11:21:16+01:00 (commit #aae6c38)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Bump copyright year.
-
2011-12-20T17:47:06+01:00 (commit #6f3bcf8)
Author: Volker Dusch (github@wallbash.com) / Commiter: Volker Dusch (github@wallbash.com)
Add phpcs rule for concatination operator spacing and fixed the few issues it shows
-
2011-12-11T15:24:18+01:00 (commit #6bf52f0)
Author: Volker Dusch (github@wallbash.com) / Commiter: Volker Dusch (github@wallbash.com)
Tidy up #437. It's not pretty but it does the job for the current use cases better
-
2011-12-10T18:39:41+01:00 (commit #f90fca7)
Author: KUBO Atsuhiro (kubo@iteman.jp) / Commiter: KUBO Atsuhiro (kubo@iteman.jp)
Change the condition for binary/non-binary string so that the character 0x7f is treated as printable.
-
2011-12-10T06:03:03+01:00 (commit #f64e0cb)
Author: KUBO Atsuhiro (kubo@iteman.jp) / Commiter: KUBO Atsuhiro (kubo@iteman.jp)
Add multibyte support for string export.
-
2011-11-11T19:15:39+01:00 (commit #5a7c493)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Fix whitespace issues.
-
2011-11-10T18:24:15+01:00 (commit #22f1695)
Author: Volker Dusch (github@wallbash.com) / Commiter: Volker Dusch (github@wallbash.com)
Strings with non printable chars will be shown as hex in the comparison. Closes #306
-
2011-08-29T07:53:47+02:00 (commit #a077184)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Cleanup.
-
2011-06-14T17:04:40+02:00 (commit #c78671b)
Author: Bernhard Schussek (bschussek@2bepublished.at) / Commiter: Bernhard Schussek (bschussek@2bepublished.at)
Renamed PHPUnit_Util_Type::toString() to export() This goes along better with shortenedExport(). Apart from that, the output of both methods was streamlined. See the diff in Util_TypeTest for more information.
-
2010-12-31T11:45:34+01:00 (commit #bee3344)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Bump copyright year.
-
2010-07-07T12:42:23+02:00 (commit #f0d9cdd)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Change email address.
-
2010-06-12T20:25:54+02:00 (commit #d19a737)
Author: Mark Story (mark@mark-story.com) / Commiter: Mark Story (mark@mark-story.com)
Removing trailing whitespace from files. Refs #1063
-
2010-04-05T17:41:26+02:00 (commit #471d69e)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Add @subpackage annotation.
-
2010-02-02T14:14:29+01:00 (commit #bc1aaaa)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Remove closing PHP tags.
-
2010-01-19T09:39:03+01:00 (commit #fb48a69)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Initial work on autoloading.
-
2009-12-31T09:26:09+01:00 (commit #37f75ff)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Bump copyright year.
-
2009-12-31T09:25:53+01:00 (commit #bddcc5f)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Bump copyright year.
-
2009-12-31T09:23:37+01:00 (commit #7a7d0b7)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Bump copyright year.
-
2009-12-25T10:32:26+01:00 (commit #60e7125)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Remove Subversion keywords.
-
2009-12-25T10:30:57+01:00 (commit #42294ad)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Remove Subversion keywords.
-
2009-12-25T10:26:35+01:00 (commit #8617133)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Remove Subversion keywords.
-
2009-12-17T16:40:48+01:00 (commit #72dc1ed)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Merge [5452].
-
2009-12-17T16:40:25+01:00 (commit #ab6798f)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Merge [5452].
-
2009-12-17T16:39:44+01:00 (commit #5dc6cf8)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Close #968.
-
2009-11-23T09:39:24+01:00 (commit #1503412)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Merge [5389].
-
2009-11-23T09:29:23+01:00 (commit #4c9cf4e)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Initial work on PHP_CodeCoverage migration.
-
2008-12-31T10:26:51+01:00 (commit #a899cb2)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Merge [4402].
-
2008-12-31T10:25:57+01:00 (commit #4b26cea)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Bump copyright year.
-
2007-12-26T19:11:55+01:00 (commit #1bba1cc)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Bump copyright year.
-
2007-12-26T19:11:04+01:00 (commit #58121cf)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Bump copyright year.
-
2007-11-24T11:03:40+01:00 (commit #9c20935)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
toString -> __toString()
-
2007-10-24T16:52:53+02:00 (commit #13d8db7)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Merge [1498].
-
2007-08-11T08:07:00+02:00 (commit #2b80731)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Merge [1061].
-
2007-02-24T07:58:18+01:00 (commit #203ee10)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Fugbix typo.
-
2007-02-24T07:58:18+01:00 (commit #ae2a7c2)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Fugbix typo.
-
2007-02-22T18:07:53+01:00 (commit #b917d2f)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Move shortenedExport() and shortenedString() to PHPUnit_Util_Type. Make shortenedString public.
-
2007-02-22T18:07:53+01:00 (commit #d61b32e)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Move shortenedExport() and shortenedString() to PHPUnit_Util_Type. Make shortenedString public.
-
2006-12-24T18:50:40+01:00 (commit #0189be1)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Bump year.
-
2006-09-26T14:40:33+02:00 (commit #1a9c17e)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Visualize NULL properly.
-
2006-09-21T16:40:42+02:00 (commit #5d8a4f5)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
More type/value visualization tweakage.
-
2006-09-21T09:43:41+02:00 (commit #06de675)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Refactor type/value visualization.
-
2006-09-11T09:20:41+02:00 (commit #75e12fb)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
No longer needed.
-
2006-08-15T13:18:40+02:00 (commit #933998e)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Revert: Make PHPUnit_Util_Array::sortRecursively() cast objects to arrays.
-
2006-08-13T10:57:58+02:00 (commit #3cd6a25)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Whitespace fixes.
-
2006-08-13T10:21:12+02:00 (commit #0780e18)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Make PHPUnit_Util_Array::sortRecursively() cast objects to arrays.
-
2006-07-06T11:50:42+02:00 (commit #dacd2f1)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Leftover: PHPUnit2 -> PHPUnit.
-
2006-06-30T10:38:41+02:00 (commit #210b621)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Make it easier to use a checkout of the trunk.
-
2006-06-29T20:56:08+02:00 (commit #6b0d2d5)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Post-PEAR cleanup, phase one: PHPUnit2_* -> PHPUnit_*, pear.php.net -> phpunit.de, etc.
-
2006-06-29T16:58:01+02:00 (commit #8b8c705)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Recreate trunk.