1
0
mirror of https://github.com/danog/amp.git synced 2024-11-27 04:24:42 +01:00
Commit Graph

1070 Commits

Author SHA1 Message Date
Niklas Keller
5cbc42d6d9 Define 'tick' 2017-01-13 15:14:01 +01:00
Bob Weinand
a1e0ebbf1b Merge pull request #135 from async-interop/count-watchers
watchers → enabled_watchers in getInfo
2017-01-13 13:37:32 +01:00
Aaron Piotrowski
7a95f58b3b Fix travis build to allow failures on 7.1 2017-01-11 20:25:45 -06:00
Aaron Piotrowski
a643f9a260 Remove last consumed value from listener before drain 2017-01-11 20:13:12 -06:00
Niklas Keller
6312ac15aa Fix invalid watcher exception construction 2017-01-11 14:28:27 +01:00
Aaron Piotrowski
ec45474c8e Move Humbug log to build 2017-01-08 21:38:30 -06:00
Niklas Keller
5aeff2c7d2 Add tests to ensure unreferenced watchers are still executed and negative expiration doesn't create issues 2017-01-08 17:56:59 +01:00
Niklas Keller
5a92c31197 Fix bootstrap test and execute it 2017-01-08 17:24:25 +01:00
Niklas Keller
30a6ac24ed Test bootstrap file 2017-01-08 17:12:04 +01:00
Niklas Keller
3fa5c3318e Merge pull request #2 from joshdifabio/patch-1
Fix async-interop version constraints
2017-01-08 16:49:13 +01:00
Josh Di Fabio
4504147b58 Fix async-interop version constraints 2017-01-08 15:12:48 +00:00
Niklas Keller
b5842db18b watchers → enabled_watchers in getInfo
This ensures it's clear which info is returned.
2017-01-08 11:40:11 +01:00
Aaron Piotrowski
4c48037295 Add reference/unreference methods to Pause 2017-01-08 01:15:57 -06:00
Aaron Piotrowski
ae28eae552 Lazy → LazyPromise 2017-01-08 01:02:11 -06:00
Aaron Piotrowski
0a79a063a6 Drop redundant tests
Covered by testInvalidYieldCatchingThrownException and testInvalidYieldCatchingThrownExceptionAndThrowing.
2017-01-08 00:34:41 -06:00
Aaron Piotrowski
5ad1fdb38b Add more Listener tests and kill another Humbug mutant 2017-01-08 00:22:07 -06:00
Niklas Keller
3b46c168a5 Improve tests and kill some Humbug mutants 2017-01-07 22:55:34 +01:00
Niklas Keller
dfa3b82485 Require PHPUnit 5.7 to remove warning on PHP 7.2 2017-01-07 19:41:04 +01:00
Aaron Piotrowski
2976ebdbb5 Throw on consecutive calls to Listener::advance(); better property names 2017-01-07 12:31:36 -06:00
Aaron Piotrowski
cf5ebb1408 Better error message when emitting after resolve 2017-01-07 12:25:04 -06:00
Aaron Piotrowski
cba57dd81e Simplify PrivatePromise and PrivateStream 2017-01-07 12:24:40 -06:00
Niklas Keller
7e40a05dc7 Require PHPUnit 5 as lowest version 2017-01-07 18:31:25 +01:00
Niklas Keller
ab8ee1d562 Use composer update instead of install on Travis 2017-01-07 16:10:13 +01:00
Niklas Keller
e2b9de63af Fix matrix 2017-01-07 16:08:12 +01:00
Niklas Keller
b041c6ff86 Move PHP versions into matrix 2017-01-07 16:02:49 +01:00
Niklas Keller
1d83dbe962 Test with highest and lowest deps 2017-01-07 15:59:17 +01:00
Niklas Keller
c7aa4590bf Fix promise test requirement 2017-01-07 15:53:55 +01:00
Niklas Keller
574172128a Test that promise is actually a promise 2017-01-07 14:28:01 +01:00
Niklas Keller
bc110c4d63 Add test for callback combination in WhenQueue 2017-01-07 14:24:21 +01:00
Niklas Keller
b797e417d8 Fix promise requirement 2017-01-07 13:55:45 +01:00
Niklas Keller
ae69e92266 Update to promise 0.4.0 and event-loop 0.5.0, add humbug config 2017-01-07 13:47:45 +01:00
Niklas Keller
568183b261 Update to event-loop 0.5.0 2017-01-07 13:45:03 +01:00
Niklas Keller
0b899f5bcd Change namespace to AsyncInterop 2017-01-07 12:23:28 +01:00
Niklas Keller
80ee591515 Test that throwing callback continues calling other whens 2017-01-07 11:51:24 +01:00
Niklas Keller
c3d94e642d Test resolution with \Exception 2017-01-07 11:50:21 +01:00
Niklas Keller
46fcbce2fc Always set and restore error handler in setUp / tearDown instead of in tests 2017-01-07 11:49:38 +01:00
Niklas Keller
0c77b964fe Change namespace to AsyncInterop 2017-01-07 11:47:58 +01:00
Niklas Keller
559c64fdb8 Add test for invalid stream arguments 2017-01-06 23:16:06 +01:00
Aaron Piotrowski
e5c4c612f8 Use onWritable watcher instead of repeat
The behavior of repeat with a 0 timeout is unpredictable in various loop implementations.
2017-01-06 10:51:50 -06:00
Aaron Piotrowski
a47fc2bc01 Don't call uv_stop()
libuv will actually stop mid-tick, making the behavior inconsistent with the other loop implementations.
2017-01-06 10:50:05 -06:00
Aaron Piotrowski
e169bb649c Remove unnecessary temp variable 2017-01-06 10:21:58 -06:00
Bob Weinand
79355641ed Add a test ensuring that watchers are enabled in the actual next tick 2017-01-06 17:21:37 +01:00
Aaron Piotrowski
fbdc611e44 Activate watchers at begging of tick instead of end 2017-01-06 10:15:54 -06:00
Aaron Piotrowski
3e0cd85b67 Stop watchers in EvLoop::__destruct() to avoid segfault 2017-01-05 17:38:33 -06:00
Aaron Piotrowski
9706815714 Fix signals in multiple loops using event and ev extensions with epoll backend 2017-01-05 17:32:03 -06:00
Aaron Piotrowski
c80f264e7e Remove unneeded support check 2017-01-05 17:21:30 -06:00
Aaron Piotrowski
33d9995b8c Increase timeouts to avoid xdebug issues
Tests would sometimes fail due to xdebug slowing down the loop.
2017-01-05 15:06:44 -06:00
Aaron Piotrowski
02c2fcf0fa Add implementation using event extension 2017-01-05 14:08:33 -06:00
Aaron Piotrowski
06e50bdb88 Fix docblock 2017-01-05 12:39:34 -06:00
Aaron Piotrowski
80900189c9 Fix visibility of deactivate() 2017-01-05 12:39:10 -06:00