Ben Ramsey
a5f297be77
Improved and cleaned up API documentation.
2013-01-19 13:27:10 -06: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
4984b7a4df
Bump moontoast/math dependency to version 1.0.0
2013-01-14 13:57:11 -06:00
Ben Ramsey
fdb88d3637
Updating for changes made to the Moontoast\Math\BigNumber interface
2013-01-09 17:28:44 -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
74354bf7d1
Updating the description of moontoast/math dependency suggestion
2013-01-05 03:15:43 -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
e2579ac565
Moving method around for consistent alphabetical ordering
2013-01-04 21:40:12 -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
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