Commit Graph

103 Commits

Author SHA1 Message Date
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 7f1c5dda77 Converted internals to use string hex fields, rather than integers
I managed to accomplish this without affecting backwards compatibility
of the interface and expected outputs. Unfortunately, two tests are now
failing, even on 64-bit platforms: getMostSignificantBits() and
getLeastSignificantBits(). I will need to break BC for these two
methods in order to return integers (rather than floats).
2013-01-04 18:27:18 -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 96d8414fc7 Merge pull request #8 from marijn/relax-doctrine-type-conversion
Relax conversion rules.
1.1.2
2012-11-29 08:24:57 -08:00
Marijn Huizendveld 2612648d2e Relax conversion rules.
Current implementation would not accept empty strings and would
throw exception in that case.
2012-11-29 09:54:06 +01:00
Ben Ramsey 5215d7e0b0 Removing "final" restriction so that the class may be mocked 1.1.1 2012-08-27 22:03:23 -05:00
Ben Ramsey edcda15194 Merge branch 'master' of github.com:ramsey/uuid
* 'master' of github.com:ramsey/uuid:
  Fix PHPDoc keyword.
2012-08-27 22:02:10 -05:00
Ben Ramsey 4d5dccd701 Merge pull request #7 from marijn/fix-php-doc
Fix PHPDoc keyword.
2012-08-21 10:38:05 -07:00
Marijn Huizendveld 5c42045fa3 Fix PHPDoc keyword.
Using the non-standard `@returns` might trigger errors in conjunction
with the `AnnotationReader` from `Doctrine\Common`.
2012-08-15 18:53:33 +02:00
Ben Ramsey 2e5a600ea3 Fixing error in README example. 2012-08-06 20:55:20 -05:00
Ben Ramsey 2544a39433 Adding @marijn to the authors in composer.json 1.1.0 2012-08-06 20:44:44 -05: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
Ben Ramsey 33f3b14e35 Merge branch 'master' of github.com:ramsey/uuid
* 'master' of github.com:ramsey/uuid:
  Suggest the installation of `doctrine/dbal`.
  Change minimum required package stability.
  Utilize native SQL field type declarations.
  Improve code PSR-0, PSR-1 and PSR-2 compliance.
  Add UUID type definition for Doctrine DBAL.
  Fixing the Travis CI build script.
  Correct default `phpunit` configuration filename.
  Added 64-bit requirement to the description.
  Finished writing library API documentation for README.
  Fixing the broken markdown syntax.
  Cleaned up some awkward working in the README.
  Adding code to detect whether this is a 32-bit or 64-bit PHP build
2012-08-06 11:53:28 -05:00
Ben Ramsey a73c09e788 Merge pull request #5 from marijn/doctrine
Add UUID type definition for Doctrine DBAL.
2012-08-06 18:00:49 -07:00
Marijn Huizendveld 487c61a27f Suggest the installation of doctrine/dbal. 2012-08-07 01:00:48 +02:00
Marijn Huizendveld b3b621d77d Change minimum required package stability.
The 2.3 version of `doctrine/dbal` has not been released yet.
2012-08-07 00:56:28 +02:00
Marijn Huizendveld ecdb6f4f82 Utilize native SQL field type declarations.
Doctrine provides a method to get the platform independent SQL field
declaration.
2012-08-07 00:51:33 +02: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 53a7d85024 Fixing the Travis CI build script. 2012-08-06 07:44:26 -05:00
Ben Ramsey 3415a1e8cd Merge pull request #3 from marijn/phpunit
Correct default `phpunit` configuration filename.
2012-08-06 05:42:04 -07:00
Marijn Huizendveld 49429be630 Correct default phpunit configuration filename.
The `phpunit.xml.dist` file will now be detected when running `$ phpunit`.
2012-08-06 09:42:37 +02:00
Ben Ramsey 7844efd86d Added 64-bit requirement to the description. 1.0.0 2012-07-19 18:56:14 -05:00
Ben Ramsey 13cc05ab36 Finished writing library API documentation for README. 2012-07-19 18:50:48 -05:00
Ben Ramsey 765b3fcf33 Fixing the broken markdown syntax. 2012-07-19 17:07:38 -05:00
Ben Ramsey f9a2e38219 Cleaned up some awkward working in the README. 2012-07-19 17:05:24 -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 e3c1731e21 Added more description, examples, and installation notes 2012-07-18 20:43:21 -05:00
Ben Ramsey e112360dad Adding config for Travis CI 2012-07-18 20:17:40 -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 5147809865 Pointing phpunit configuration to use the new src/ directory 2012-07-18 19:17:29 -05:00
Ben Ramsey f4616584f9 Cleanup with some name changes. 2012-07-18 17:21:42 -05:00
Ben Ramsey 302b5c519d Streamlining toString() method 2012-07-18 17:20:54 -05:00
Ben Ramsey 1b26a6da84 Shortened the names of most/least significant bits internally 2012-07-18 17:19:12 -05:00
Ben Ramsey db0cf77ed4 Renamed library/ to src/ to be consistent with other projects. 2012-07-18 16:55:29 -05:00
Ben Ramsey f2060ada25 Stubs for uuid3 and uuid5 2012-07-17 20:33:03 -05:00
Ben Ramsey 2b812d8200 Update composer.json 2012-07-17 20:32:36 -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