Commit Graph

48 Commits

Author SHA1 Message Date
Daniel Freudenberger d4d5b45ab8 fixes #16
fix unit tests to be compatible with doctrine/dbal >= 2.4.0
2013-09-18 00:33:03 +02:00
Ben Ramsey 4d746373fa Full code coverage for generateBytes() 2013-09-15 17:17:33 -05:00
Ben Ramsey 75031718ab Enhance tests by using an array of known values from the Python UUID tests 2013-07-26 17:38:16 -05:00
Ben Ramsey 1f14542622 Enhance the massive time test with more usec values and compare times 2013-07-26 17:36:41 -05:00
Ben Ramsey 22d0b44844 Enhance tests for version-3 and version-5 UUIDs with more known values 2013-07-26 17:35:49 -05:00
Ben Ramsey 77c9c154f6 Allow a 128-bit integer formatted as a hex string in Uuid::fromString() 2013-07-26 17:34:27 -05:00
Alexander ebe97d4c27 Add Uuid::fromBytes() to (re-)create a Uuid from a byte string 2013-07-16 13:44:28 +02:00
Ben Ramsey 4333707ecd Added a test for requiresSQLCommentHint() 2013-07-04 10:51:23 -05:00
Ben Ramsey 41f9f27337 Rather than skipping these tests, just return for a clean test run 2013-07-03 18:00:49 -05:00
Ben Ramsey e44a6ae90f Ensure uppercase digits in the node are converted to lowercase 2013-07-03 17:59:25 -05:00
Ben Ramsey 9d175d1d79 Fixed NIL bug in isValid() method, reported by @ocubom in PR #11 2013-04-29 15:38:09 -05:00
Eric Thelin 40a13a18c6 create isValid method call to check is a UUID matches the standards including tests 2013-04-15 17:47:08 -05:00
Ben Ramsey 689af97cd9 Throw exception from getTimestampHex() if not a version 1 UUID 2013-01-19 13:25:32 -06:00
Ben Ramsey 8f63d671a7 Replace BadMethodCallException with UnsatisfiedDependencyException 2013-01-19 12:48:05 -06:00
Ben Ramsey ad3bde8b24 Moved UnsupportedOperationException to the Exception subnamespace 2013-01-19 12:09:04 -06:00
Ben Ramsey 52e080bc52 Fixing tests to run on 32-bit systems 2013-01-06 13:13:15 -06:00
Ben Ramsey 3c3abba795 Copied UuidTest from 1.1.2 tag and placed here for BC tests 2013-01-06 11:10:13 -06:00
Ben Ramsey f76f65e83c Cleaning up tests; removed TestCase class and moved all into UuidTest 2013-01-05 03:14:23 -06:00
Ben Ramsey eb83d9bcf9 BC-BREAK: Changing output of most/least sig bits methods 2013-01-05 03:12:59 -06:00
Ben Ramsey 9104026c14 Support UUID timestamp on 32-bit systems 2013-01-05 02:56:17 -06:00
Ben Ramsey a3eb795b82 Switch system node parameter to be a string hexadecimal value 2013-01-04 22:56:02 -06:00
Ben Ramsey 61cd298122 Throwing exceptions for certain methods on 32-bit systems 2013-01-04 22:37:41 -06:00
Ben Ramsey ed8ec33eb1 Adding hasBigNumber() and is64BitSystem() helper methods 2013-01-04 21:58:47 -06:00
Ben Ramsey a7766c0e40 Removing 32-bit exception thrown from the constructor 2013-01-04 21:41:46 -06:00
Ben Ramsey a4ccac8373 Testing uuid1() with a 32-bit int node passed in 2013-01-04 21:34:13 -06:00
Ben Ramsey f8292a6823 Marking certain tests as skipped, if not on a 64-bit system 2013-01-04 21:33:15 -06:00
Ben Ramsey f877161a5c Move testing flag for ignoring system node to a static property 2013-01-04 21:08:29 -06:00
Ben Ramsey e394a27e74 Implemented get*Hex() methods for most/least significant bits 2013-01-04 17:07:01 -06:00
Ben Ramsey 8cea239e85 Add additional assertion for better testing of getBytes() 2013-01-04 16:58:22 -06:00
Ben Ramsey ca73977ae3 Providing separate get*Hex() methods for each UUID field 2013-01-04 16:57:39 -06:00
Ben Ramsey 1bc50e4fb8 Test for UuidType::getSqlDeclaration 2012-08-06 20:30:58 -05:00
Ben Ramsey 7c8126d3b3 Test for UuidType::getName 2012-08-06 20:19:25 -05:00
Ben Ramsey b78227ea5d Full code-coverage for UuidType::convertToDatabaseValue 2012-08-06 20:17:18 -05:00
Ben Ramsey 554e002240 Creating more explicit method names for tests 2012-08-06 20:14:50 -05:00
Ben Ramsey 731d12d69c Adding @covers annotations for PHPUnit 2012-08-06 20:14:07 -05:00
Ben Ramsey 38193ef0c4 Updating Travis CI config and skipping tests for 32-bit builds. 2012-08-06 20:06:02 -05:00
Marijn Huizendveld 5d9ff8c07e Improve code PSR-0, PSR-1 and PSR-2 compliance.
- tabs -> spaces
- whitespace around control structures
2012-08-06 18:30:02 +02:00
Marijn Huizendveld dcbb873e62 Add UUID type definition for Doctrine DBAL.
This allows the use of [custom mapping types][1] when using the Doctrine
DBAL or Doctrine ORM.

[1]: http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/types.html#custom-mapping-types
2012-08-06 18:03:54 +02:00
Ben Ramsey 13cc05ab36 Finished writing library API documentation for README. 2012-07-19 18:50:48 -05:00
Ben Ramsey d0ffcb2d4a Adding code to detect whether this is a 32-bit or 64-bit PHP build 2012-07-19 17:02:19 -05:00
Ben Ramsey a1fc4ef300 Implemented compareTo() and equals() 2012-07-18 20:13:37 -05:00
Ben Ramsey ebf1640ccb Implemented support for v3, v4, and v5 UUIDs. 2012-07-18 19:24:02 -05:00
Ben Ramsey 7450337147 Better UUIDv1 testing and generation of random node value 2012-07-18 19:22:24 -05:00
Ben Ramsey 302b5c519d Streamlining toString() method 2012-07-18 17:20:54 -05:00
Ben Ramsey 7cbc62a40f Adding getFields() method to return array of fields. 2012-07-08 17:52:16 -05:00
Ben Ramsey 628d93a860 Better fromString() handling to allow URN strings. 2012-07-08 17:27:04 -05:00
Ben Ramsey 12146272b3 Adding getUrn() method with test 2012-07-08 17:17:20 -05:00
Ben Ramsey dc93facbac Initial commit; supports UUID version 1 generation. 2012-07-05 18:29:35 -05:00