Commit Graph

126 Commits

Author SHA1 Message Date
Martin Hujer ca2629767d Require phpstan and correct issues found up to level 2
* issues found by phpstan L0
* issues found by phpstan L1
* issues found by phpstan L2 in src/
* issues found by phpstan L2 in tests/
2020-01-18 12:13:08 -06:00
Martin Hujer 1eccd070c2 Add XSD schema to phpunit.xml.dist config
- Add XSD schema, so it can be validated (and PHPStorm provides
  auto-completion)
- Drop backupGlobals option, because false is the default value
2020-01-18 12:13:08 -06:00
Martin Hujer c5935bf963 Drop paragonie/random_compat from dependencies
It is not necessary anymore, because the minimal required version was
already set to PHP 7
2020-01-18 12:13:08 -06:00
Teoh Han Hui b6ca0903b9 Fix typo for PHP version requirement 2020-01-18 12:13:08 -06:00
Ben Ramsey 5d7ee63f1c Update dev requirements and test suite for PHP 7+ only 2020-01-18 12:13:07 -06:00
Jildert Miedema 225eb3b4c1 Set minimum version to PHP 5.6 and use PHP 5.5 style ::class constants 2020-01-18 12:13:07 -06:00
Ben Ramsey 2c87e46b63 Require builds on PHP 7.4 to pass and allow installation on PHP 8 2019-12-06 21:43:54 -08:00
Ben Ramsey 6f970cbd08 Run test commands individually on Travis CI
Using Composer's run-script to run all the commands together appears to
be encountering a segfault at some point, and it is difficult to debug,
since it seems to be intermittent.
2019-12-06 15:00:14 -08:00
Ben Ramsey 5225fb3c82 Upgrade mockery and parallel linter 2019-12-04 17:02:35 -08:00
Ben Ramsey 5375d53594 Upgrade to a newer version of PHP_CodeSniffer 2019-12-04 16:45:09 -08:00
Matias Navarro Carter 2ec28dd736 Function api created
Function api is a set of simple autoloaded functions to create uuids proxying the Uuid class static methods.

They provide easy and clean ways of just creating string represented uuids instead of the class.
2019-11-30 13:53:03 -08:00
Ben Ramsey 64ba9a2767 Clean up code according to PhpStorm inspections report 2019-11-30 13:14:52 -08:00
Ben Ramsey 39c610ea31 Clean up project documentation and repo metadata 2019-11-30 11:07:39 -08:00
Ben Ramsey f19b700bd8 Clean up dependencies 2019-11-30 09:10:09 -08:00
Andreas Möller 59f7202226 Enhancement: Normalize composer.json 2019-11-30 09:10:09 -08:00
karsasmus 2824db17c8 Change library ircmaxell/random-lib to paragonie/random-lib 2019-11-30 09:10:09 -08:00
Ben Ramsey 5d5eab97ee Add ext-json as a dependency 2018-08-05 16:59:04 -05:00
Ben Ramsey 735eb7e3c9 Add ext-ctype as a suggested extension 2018-07-19 15:48:43 -05:00
Andreas Möller cff5e11876 Enhancement: Keep packages sorted in composer.json 2018-07-19 14:48:23 +02:00
Simon Welsh e92ca19998 Support random_compat v9.99.99 2018-07-02 11:11:51 +10:00
Ben Ramsey 526b329d74 Merge pull request #223 from BackEndTea/enhancement/ctype-compat
Add a polyfill for ctype
2018-07-01 15:11:32 -05:00
Gert de Pagter 8d8766dc74 Use symfony version of ctype compat 2018-05-01 10:58:23 +02:00
peter279k 8fab36d995 Use class-based PHPUnit namespace 2018-04-25 18:43:33 +08:00
Gert de Pagter a32a202301 Add a polyfil for ctype
This deals with #142 by adding a polyfil for the ctype functions
instead of failing an install.

The only downside for end users is that their version is slightly slower
if the run without ctype. But it does allow them to run it.
2018-04-23 18:30:10 +02:00
Ben Ramsey 1f55a65f51 Pin goaop/framework to less than v2.2, so that builds start passing 2018-03-23 11:28:09 -04:00
Ben Ramsey e67d6bfdc2 Revert to pre-1.x series of mockery/mockery for ramsey/uuid 3.x 2018-01-16 19:45:47 -06:00
Ben Ramsey fc6ebc6e72 Remove satooshi/php-coveralls from dev requirements 2018-01-16 13:53:41 -06:00
Ben Ramsey 5a98ff58fe Remove apigen/apigen as a dev dependency 2018-01-16 13:53:41 -06:00
Ben Ramsey c8720ffe16 Upgrade mockery/mockery to the 1.x series 2018-01-16 13:53:32 -06:00
Ben Ramsey bd7f7f3135 Restrict codeception/aspect-mock to the 2.0.* series
A backward-incompatible change was introduced in codeception/aspect-mock
version 2.1, causing tests to generate errors. There is no need to
update the tests in the 3.x series of ramsey/uuid, so this change
restricts aspect-mock to <2.1.
2017-11-08 21:16:02 -06:00
Ben Peachey c52af4ea07 Removes <5.4 limit for PHPUnit in composer.json file. 2017-10-17 12:47:21 +02:00
Ben Ramsey ff6ad53a00 Allow alpha version of goaop/framework for PHP 5.4 2017-03-18 12:02:09 -05:00
Ben Ramsey 734eb56383 Allow older dependencies for earlier versions of PHP 2017-03-18 11:57:21 -05:00
Ben Ramsey 6d7b1dc123 Update dev dependencies so that tests succeed on PHP nightlies 2017-03-18 11:52:45 -05:00
Ben Ramsey 9e1b234324 Add Composer scripts as shortcuts to tests and doc generation 2017-03-18 10:38:08 -05:00
Tobias Nyholm f2a7cd06bb Be more specific about PHP versions
We do not support PHP6 nor PHP8.
2017-03-08 10:32:44 +01:00
Leigh 8a55a398d2 Pin doctrine/annotations to a 1.2.x version
1.3.x is currently causing test failures when used with goaop
1.0.0-alpha2 (which we are pinned at for PHP 5.4 compat)
2016-10-31 13:33:01 +00:00
Jessica Mauerhan ae2d1f8ca9 Add older version of phpmock 2016-10-06 11:00:35 -04:00
Jessica Mauerhan 761e5115be Add function mock test for systems without libsodium 2016-10-04 16:23:36 -04:00
Andreas Möller 7ff6fff06d Fix: Move tests one up 2016-09-15 08:31:27 +02:00
Ben Ramsey 22226169cd Limit PHPUnit use to <5.4 to avoid deprecation warnings in master 2016-06-24 16:40:07 +02:00
Ben Ramsey e8b615187e Merge pull request #104 from jmauerhan/add-generator-test-coverage
Add src/Generator test coverage
2016-03-23 12:02:37 -03:00
Jessica Mauerhan 7e8fef0ce1 merge 2016-03-23 07:23:42 -04:00
Ben Ramsey 4aac31920d Merge pull request #101 from ramsey/3.x/random_compat
Drop the use of OpenSSL as a fallback and use paragonie/random_compat
2016-03-22 15:35:14 -03:00
Ben Ramsey 7c5751d6fa Add 3.x-dev Composer branch alias for dev-master
[ci skip]
2016-03-22 15:29:26 -03:00
Ben Ramsey 04ad192962 Merge branch '2.x/random_compat' into 3.x/random_compat 2016-03-22 14:54:20 -03:00
Ben Ramsey b64eb3039a Allow ^1.0|^2.0 for paragonie/random_compat for those depending on 1.x 2016-03-22 14:50:32 -03:00
Jessica Mauerhan 0068b1be55 Specifying versions of aspect-mock and goaop that should work on 5.4 2016-03-22 11:33:28 -04:00
Jessica Mauerhan dfd89e2275 Add AspectMock for mocking built-in functions
It's possible to do this without the library, but the library makes it
simpler, so we don't have to have a bunch of extra files in the test code
base for each of the mocked methods in the namespace, and then manually
require them. This is much cleaner and I think makes it more obvious what
the mock is doing.
2016-03-22 11:11:33 -04:00
Ben Ramsey 78824fdd37 Merge branch '2.x/random_compat' into 3.x/random_compat 2016-03-22 11:57:46 -03:00