repo
stringlengths
7
63
file_url
stringlengths
81
284
file_path
stringlengths
5
200
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:02:33
2026-01-05 05:24:06
truncated
bool
2 classes
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/test/Rx/Functional/Operator/FromArrayTest.php
test/Rx/Functional/Operator/FromArrayTest.php
<?php namespace Rx\Functional; use Rx\Observable; class FromArrayTest extends FunctionalTestCase { /** * @test */ public function it_schedules_all_elements_from_the_array() { $xs = Observable::fromArray(['foo', 'bar', 'baz']); $results = $this->scheduler->startWithCreate(functi...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/test/Rx/Functional/Operator/DelayTest.php
test/Rx/Functional/Operator/DelayTest.php
<?php namespace Rx\Functional\Operator; use Rx\Functional\FunctionalTestCase; class DelayTest extends FunctionalTestCase { /** * @test */ public function delay_relative_time_simple_1() { $xs = $this->createHotObservable([ onNext(150, 1), onNext(250, 2), ...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/test/Rx/Functional/Operator/ZipTest.php
test/Rx/Functional/Operator/ZipTest.php
<?php namespace Rx\Functional\Operator; use Rx\Functional\FunctionalTestCase; use Rx\Observable\ArrayObservable; use Rx\Observable\NeverObservable; use Rx\Observer\CallbackObserver; use Rx\Scheduler\ImmediateScheduler; class ZipTest extends FunctionalTestCase { public function testZipNArySymmetric() { ...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/test/Rx/Functional/Operator/TakeTest.php
test/Rx/Functional/Operator/TakeTest.php
<?php namespace Rx\Functional\Operator; use Rx\Functional\FunctionalTestCase; use Rx\Observable\ReturnObservable; use Rx\Observer\CallbackObserver; class TakeTest extends FunctionalTestCase { /** * @test * @expectedException \InvalidArgumentException */ public function it_throws_an_exception...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/test/Rx/Functional/Operator/PublishLastTest.php
test/Rx/Functional/Operator/PublishLastTest.php
<?php namespace Rx\Functional\Operator; use Rx\Functional\FunctionalTestCase; use Rx\Observable; use Rx\Observable\NeverObservable; class PublishLastTest extends FunctionalTestCase { public function add($x, $y) { return $x + $y; } /** * @test */ public function publishLast_bas...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/test/Rx/Functional/Operator/MergeAllTest.php
test/Rx/Functional/Operator/MergeAllTest.php
<?php namespace Rx\Functional\Operator; use Exception; use Rx\Functional\FunctionalTestCase; use Rx\Observable; class MergeAllTest extends FunctionalTestCase { /** * @test */ public function it_passes_on_error_from_sources() { $xs = $this->createColdObservable(array( onNext(...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/test/Rx/Functional/Operator/SkipUntilTest.php
test/Rx/Functional/Operator/SkipUntilTest.php
<?php namespace Rx\Functional\Operator; use Rx\Disposable\CallbackDisposable; use Rx\Functional\FunctionalTestCase; use Rx\Observable\AnonymousObservable; use Rx\Observable; use Rx\Testing\MockObserver; class SkipUntilTest extends FunctionalTestCase { public function testSkipUntilSomeDataNext() { $...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/test/Rx/Functional/Operator/CreateTest.php
test/Rx/Functional/Operator/CreateTest.php
<?php namespace Rx\Functional; use Rx\Disposable\CallbackDisposable; use Rx\Disposable\EmptyDisposable; use Rx\Observable; use Rx\Observer\CallbackObserver; use Rx\ObserverInterface; class CreateTest extends FunctionalTestCase { /** * @test */ public function create_next() { $results =...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/test/Rx/Functional/Operator/TimeoutTest.php
test/Rx/Functional/Operator/TimeoutTest.php
<?php namespace Rx\Functional\Operator; use Rx\Functional\FunctionalTestCase; use Rx\Notification\OnErrorNotification; use Rx\Observable\ErrorObservable; use Rx\Observer\TestException; use Rx\Testing\Recorded; class TimeoutTest extends FunctionalTestCase { /** * @test */ public function timeout_in_...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/test/Rx/Functional/Operator/SkipTest.php
test/Rx/Functional/Operator/SkipTest.php
<?php namespace Rx\Functional\Operator; use Rx\Functional\FunctionalTestCase; use Rx\Observable\ReturnObservable; use Rx\Observer\CallbackObserver; class SkipTest extends FunctionalTestCase { /** * @test * @expectedException \InvalidArgumentException */ public function it_throws_an_exception...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/test/Rx/Functional/Operator/WhereTest.php
test/Rx/Functional/Operator/WhereTest.php
<?php namespace Rx\Functional\Operator; use Exception; use Rx\Functional\FunctionalTestCase; use Rx\Observable\ReturnObservable; class WhereTest extends FunctionalTestCase { /** * @test */ public function it_filters_all_on_false() { $xs = $this->createHotObservableWithData(); $...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/test/Rx/Functional/Operator/ScanTest.php
test/Rx/Functional/Operator/ScanTest.php
<?php namespace Rx\Functional\Operator; use Rx\Functional\FunctionalTestCase; use Rx\Observable; class ScanTest extends FunctionalTestCase { public function testScanSeedNever() { $seed = 42; $results = $this->scheduler->startWithCreate(function () use ($seed) { return Observable:...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/test/Rx/Functional/Operator/DoOnCompletedTest.php
test/Rx/Functional/Operator/DoOnCompletedTest.php
<?php namespace Rx\Functional\Operator; use Rx\Functional\FunctionalTestCase; class DoOnCompletedTest extends FunctionalTestCase { /** * @test */ public function doOnCompleted_should_be_called() { $xs = $this->createHotObservable([ onNext(150, 1), onNext(210, 2), ...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/test/Rx/Functional/Operator/NeverTest.php
test/Rx/Functional/Operator/NeverTest.php
<?php namespace Rx\Functional\Operator; use Rx\Functional\FunctionalTestCase; use Rx\Observable; use Rx\Testing\MockObserver; class NeverTest extends FunctionalTestCase { /** * @test */ public function never_basic() { $xs = Observable::never(); $results = new MockObserver($this...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/test/Rx/Functional/Operator/PublishValueTest.php
test/Rx/Functional/Operator/PublishValueTest.php
<?php namespace Rx\Functional\Operator; use Rx\Functional\FunctionalTestCase; use Rx\Observable; use Rx\Observable\NeverObservable; class PublishValueTest extends FunctionalTestCase { public function add($x, $y) { return $x + $y; } /** * @test */ public function publishLast_ba...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/test/Rx/Functional/Operator/DoOnEachOperatorTest.php
test/Rx/Functional/Operator/DoOnEachOperatorTest.php
<?php namespace Rx\Functional\Operator; use Rx\Functional\FunctionalTestCase; use Rx\Observer\CallbackObserver; class DoOnEachOperatorTest extends FunctionalTestCase { /** * @test */ public function doOnEach_should_see_all_values() { $xs = $this->createHotObservable([ onNext(...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/test/Rx/Functional/Operator/GroupByTest.php
test/Rx/Functional/Operator/GroupByTest.php
<?php namespace Rx\Functional\Operator; use Exception; use Rx\Functional\FunctionalTestCase; use Rx\Observable\GroupedObservable; use Rx\Testing\MockObserver; class GroupByTest extends FunctionalTestCase { /** * @test */ public function it_passes_on_complete() { $xs = $this->cre...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/test/Rx/Functional/Operator/StartTest.php
test/Rx/Functional/Operator/StartTest.php
<?php namespace Rx\Functional\Operator; use React\EventLoop\Factory; use Rx\Functional\FunctionalTestCase; use Rx\Observable; use Rx\Scheduler\EventLoopScheduler; class StartTest extends FunctionalTestCase { /** * @test */ public function start_action() { $done = false; $result...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/test/Rx/Functional/Operator/CountTest.php
test/Rx/Functional/Operator/CountTest.php
<?php namespace Rx\Functional\Operator; use Rx\Functional\FunctionalTestCase; use Rx\Observable; class CountTest extends FunctionalTestCase { public function testCountEmpty() { $xs = $this->createHotObservable( [ onNext(150, 1), onCompleted(250) ...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/test/Rx/Functional/Operator/PublishTest.php
test/Rx/Functional/Operator/PublishTest.php
<?php namespace Rx\Functional\Operator; use Rx\Disposable\CallbackDisposable; use Rx\Functional\FunctionalTestCase; use Rx\Observable\AnonymousObservable; use Rx\Observable; use Rx\Observable\ConnectableObservable; use Rx\Observer\CallbackObserver; use Rx\Testing\TestSubject; class PublishTest extends FunctionalTest...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/test/Rx/Functional/Operator/ReduceTest.php
test/Rx/Functional/Operator/ReduceTest.php
<?php namespace Rx\Functional\Operator; use Rx\Functional\FunctionalTestCase; use Rx\Notification\OnErrorNotification; use Rx\Testing\MockObserver; use Rx\Testing\Recorded; class ReduceTest extends FunctionalTestCase { /** * @test */ public function reduce_with_seed_empty() { $xs = $t...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/test/Rx/Functional/Operator/MulticastTest.php
test/Rx/Functional/Operator/MulticastTest.php
<?php namespace Rx\Functional\Operator; use Rx\Disposable\CallbackDisposable; use Rx\Functional\FunctionalTestCase; use Rx\Observable\AnonymousObservable; use Rx\Observable; use Rx\Observable\ConnectableObservable; use Rx\Observable\MulticastObservable; use Rx\Observer\CallbackObserver; use Rx\Subject\Subject; use Rx...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/test/Rx/Functional/Operator/ConcatTest.php
test/Rx/Functional/Operator/ConcatTest.php
<?php namespace Rx\Functional\Operator; use Rx\Functional\FunctionalTestCase; use Rx\Observable; use Rx\Observable\EmptyObservable; class ConcatTest extends FunctionalTestCase { public function testConcatEmptyEmpty() { $e1 = $this->createHotObservable([ onNext(150, 1), onComp...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/test/Rx/Functional/Operator/ReplayTest.php
test/Rx/Functional/Operator/ReplayTest.php
<?php namespace Rx\Functional\Operator; use Rx\Functional\FunctionalTestCase; use Rx\Observable; use Rx\Observable\NeverObservable; class ReplayTest extends FunctionalTestCase { /** * @test */ public function replay_count_basic() { $xs = $this->createHotObservable([ onNext(11...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/test/Rx/Functional/Operator/SubscribeOnTest.php
test/Rx/Functional/Operator/SubscribeOnTest.php
<?php namespace Rx\Functional\Operator; use Rx\Functional\FunctionalTestCase; use Rx\Observable; class SubscribeOnTest extends FunctionalTestCase { /** * @test */ public function subscribeOn_normal() { $xs = $this->createHotObservable( [ onNext(150, 1), ...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/test/Rx/Functional/Operator/SelectTest.php
test/Rx/Functional/Operator/SelectTest.php
<?php namespace Rx\Functional\Operator; use Exception; use Rx\Functional\FunctionalTestCase; use Rx\Observable\ReturnObservable; class SelectTest extends FunctionalTestCase { /** * @test */ public function calls_on_error_if_selector_throws_an_exception() { $xs = $this->createHotObserva...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/test/Rx/Functional/Operator/MergeTest.php
test/Rx/Functional/Operator/MergeTest.php
<?php namespace Rx\Functional\Operator; use Rx\Functional\FunctionalTestCase; class MergeTest extends FunctionalTestCase { /** * @test */ public function it_passes_the_last_on_complete() { $xs = $this->createColdObservable(array( onNext(100, 4), onNext(200, 2), ...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/test/Rx/Functional/Operator/DoOnNextTest.php
test/Rx/Functional/Operator/DoOnNextTest.php
<?php namespace Rx\Functional\Operator; use Rx\Functional\FunctionalTestCase; class DoOnNextTest extends FunctionalTestCase { /** * @test */ public function doOnNext_should_see_all_values() { $xs = $this->createHotObservable([ onNext(150, 1), onNext(210, 2), ...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/test/Rx/Functional/Operator/DoOnErrorTest.php
test/Rx/Functional/Operator/DoOnErrorTest.php
<?php namespace Rx\Functional\Operator; use RuntimeException; use Rx\Functional\FunctionalTestCase; class DoOnErrorTest extends FunctionalTestCase { /** * @test */ public function doOnError_should_see_errors() { $ex = new RuntimeException('boom!'); $xs = $this->createHotObservab...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/test/Rx/Functional/Operator/ToArrayTest.php
test/Rx/Functional/Operator/ToArrayTest.php
<?php namespace Rx\Functional\Operator; use Rx\Functional\FunctionalTestCase; use Rx\Testing\MockObserver; class ToArrayTest extends FunctionalTestCase { public function testToArrayCompleted() { $xs = $this->createHotObservable( [ onNext(110, 1), onNext(...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/test/Rx/Functional/Operator/RepeatTest.php
test/Rx/Functional/Operator/RepeatTest.php
<?php namespace Rx\Functional\Operator; use Rx\Functional\FunctionalTestCase; use Rx\Observable\AnonymousObservable; use Rx\Observable\ErrorObservable; use Rx\Observable\ReturnObservable; use Rx\Observer\CallbackObserver; use Rx\Testing\TestScheduler; class RepeatTest extends FunctionalTestCase { /** * @tes...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/test/Rx/Functional/Operator/CombineLatestTest.php
test/Rx/Functional/Operator/CombineLatestTest.php
<?php namespace Rx\Functional\Operator; use Rx\Functional\FunctionalTestCase; use Rx\Observable\NeverObservable; class CombineLatestTest extends FunctionalTestCase { public function add($a, $b) { return $a + $b; } /** * @test */ public function combineLatest_never_never() ...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/test/Rx/Functional/Operator/DefaultIfEmptyTest.php
test/Rx/Functional/Operator/DefaultIfEmptyTest.php
<?php namespace Rx\Functional\Operator; use Rx\Functional\FunctionalTestCase; use Rx\Observable; use Rx\Observable\EmptyObservable; use Rx\Observable\ReturnObservable; class DefaultIfEmptyTest extends FunctionalTestCase { /** * @test */ public function defaultIfEmpty_nonEmpty_1() { $xs...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/test/Rx/Functional/Operator/DistinctUntilChangedTest.php
test/Rx/Functional/Operator/DistinctUntilChangedTest.php
<?php namespace Rx\Functional\Operator; use Rx\Functional\FunctionalTestCase; use Rx\Notification\OnCompletedNotification; use Rx\Notification\OnNextNotification; use Rx\Observable; use Rx\Observable\EmptyObservable; use Rx\Testing\Recorded; class DistinctUntilChangedTest extends FunctionalTestCase { /** * ...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/test/Rx/Functional/Operator/TakeUntilTest.php
test/Rx/Functional/Operator/TakeUntilTest.php
<?php namespace Rx\Functional\Operator; use Rx\Functional\FunctionalTestCase; use Rx\Observable; class TakeUntilTest extends FunctionalTestCase { /** * @test */ public function takeUntil_preempt_some_data_next() { $l = $this->createHotObservable([ onNext(150, 1), ...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/test/Rx/Functional/Operator/AsObservableTest.php
test/Rx/Functional/Operator/AsObservableTest.php
<?php namespace Rx\Functional\Operator; use Exception; use Rx\Disposable\CallbackDisposable; use Rx\Functional\FunctionalTestCase; use Rx\Observable\AnonymousObservable; use Rx\Observable; use Rx\Observable\EmptyObservable; class AsObservableTest extends FunctionalTestCase { public function testAsObservableHide...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/test/Rx/Functional/Operator/SelectManyTest.php
test/Rx/Functional/Operator/SelectManyTest.php
<?php namespace Rx\Functional\Operator; use Exception; use Rx\Functional\FunctionalTestCase; class SelectManyTest extends FunctionalTestCase { /** * @test */ public function it_passes_the_last_on_complete() { $xs = $this->createColdObservable(array( onNext(100, 4), ...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/test/Rx/Functional/Observable/IntervalObservableTest.php
test/Rx/Functional/Observable/IntervalObservableTest.php
<?php namespace Rx\Functional\Observable; use Rx\Functional\FunctionalTestCase; use Rx\Observable\IntervalObservable; use Rx\Observer\CallbackObserver; class IntervalObservableTest extends FunctionalTestCase { /** * @test */ public function interval_relative_time_basic() { $results = $t...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/test/Rx/Functional/Observable/IteratorObservableTest.php
test/Rx/Functional/Observable/IteratorObservableTest.php
<?php namespace Rx\Functional\Observable; use Rx\Functional\FunctionalTestCase; use Rx\Observable; class IteratorObservableTest extends FunctionalTestCase { /** * @test */ public function it_schedules_all_elements_from_the_generator() { $generator = $this->genOneToThree(); $xs...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/test/Rx/Functional/Observable/ReturnObservableTest.php
test/Rx/Functional/Observable/ReturnObservableTest.php
<?php namespace Rx\Functional\Observable; use Rx\Functional\FunctionalTestCase; use Rx\Observable\ReturnObservable; use Rx\Observer\CallbackObserver; class ReturnObservableTest extends FunctionalTestCase { public function testReturnObservableSubscribeTwice() { $o = new ReturnObservable("The Value"); ...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/test/Rx/Functional/Subject/AsyncSubjectTest.php
test/Rx/Functional/Subject/AsyncSubjectTest.php
<?php namespace Rx\Functional\Subject; use Rx\Functional\FunctionalTestCase; use Rx\Observer\CallbackObserver; use Rx\Subject\AsyncSubject; class AsyncSubjectTest extends FunctionalTestCase { /** * @test */ public function infinite() { $xs = $this->createHotObservable([ onNe...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/test/Rx/Functional/Subject/ReplaySubjectTest.php
test/Rx/Functional/Subject/ReplaySubjectTest.php
<?php namespace Rx\Functional\Subject; use Rx\Functional\FunctionalTestCase; use Rx\Observable; use Rx\Observer\CallbackObserver; use Rx\Subject\ReplaySubject; class ReplaySubjectTest extends FunctionalTestCase { function testInfinite() { $xs = $this->createHotObservable([ onNext(70, 1), ...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/test/Rx/Disposable/SerialDisposableTest.php
test/Rx/Disposable/SerialDisposableTest.php
<?php namespace Rx\Disposable; use Rx\TestCase; class SerialDisposableTest extends TestCase { /** * @test */ public function it_disposes_the_assigned_disposable() { $disposed1 = false; $d1 = new CallbackDisposable(function () use (&$disposed1) { $disposed1 ...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/test/Rx/Disposable/SingleAssignmentDisposableTest.php
test/Rx/Disposable/SingleAssignmentDisposableTest.php
<?php namespace Rx\Disposable; use Rx\TestCase; class SingleAssignmentDisposableTest extends TestCase { /** * @test */ public function it_disposes_the_assigned_disposable() { $disposed1 = false; $d1 = new CallbackDisposable(function() use (&$disposed1){ $disposed1 = tr...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/test/Rx/Disposable/CallbackDisposableTest.php
test/Rx/Disposable/CallbackDisposableTest.php
<?php namespace Rx\Disposable; use Rx\TestCase; class CallbackDisposableTest extends TestCase { /** * @test */ public function it_calls_the_callback_on_dispose() { $disposed = false; $disposable = new CallbackDisposable(function() use (&$disposed) { $disposed = true; }); ...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/test/Rx/Disposable/RefCountDisposableTest.php
test/Rx/Disposable/RefCountDisposableTest.php
<?php namespace Rx\Disposable; use Rx\DisposableInterface; use Rx\TestCase; class RefCountDisposableTest extends TestCase { /** * @test */ public function it_holds_a_reference_to_one_disposable() { $d = new BooleanDisposable(); $r = new RefCountDisposable($d); $this->as...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/test/Rx/Disposable/EmptyDisposableTest.php
test/Rx/Disposable/EmptyDisposableTest.php
<?php namespace Rx\Disposable; use Rx\TestCase; class EmptyDisposableTest extends TestCase { /** * @test */ public function it_can_be_disposed() { $disposable = new EmptyDisposable(); $disposable->dispose(); } }
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/test/Rx/Disposable/CompositeDisposableTest.php
test/Rx/Disposable/CompositeDisposableTest.php
<?php namespace Rx\Disposable; use Rx\TestCase; class CompositeDisposableTest extends TestCase { /** * @test */ public function it_exposes_the_amount_of_disposables_composed() { $d1 = new CallbackDisposable(function(){}); $d2 = new CallbackDisposable(function(){}); $disp...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/test/Rx/Scheduler/VirtualTimeSchedulerTest.php
test/Rx/Scheduler/VirtualTimeSchedulerTest.php
<?php namespace Rx\Scheduler; use Rx\TestCase; class VirtualTimeSchedulerTest { }
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/test/Rx/Scheduler/PriorityQueueTest.php
test/Rx/Scheduler/PriorityQueueTest.php
<?php namespace Rx\Scheduler; use Rx\TestCase; class PriorityQueueTest extends TestCase { /** * @test */ public function it_should_remove_a_scheduled_item() { $queue = new PriorityQueue(); $scheduledItem = $this->createScheduledItem(1); $scheduledItem2 = $this-...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/test/Rx/Scheduler/ImmediateSchedulerTest.php
test/Rx/Scheduler/ImmediateSchedulerTest.php
<?php namespace Rx\Scheduler; use Rx\TestCase; class ImmediateSchedulerTest extends TestCase { /** * @test */ public function now_returns_the_time() { $scheduler = new ImmediateScheduler(); $this->assertTrue(abs(time() - $scheduler->now()) < 1, "time difference is less than or eq...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/test/Rx/Scheduler/EventLoopSchedulerTest.php
test/Rx/Scheduler/EventLoopSchedulerTest.php
<?php namespace Rx\Scheduler; use React\EventLoop\Factory; use Rx\Observable; use Rx\TestCase; class EventLoopSchedulerTest extends TestCase { /** * @test */ public function now_returns_the_time() { $loop = Factory::create(); $scheduler = new EventLoopScheduler($loop); ...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/test/Rx/Observer/CallbackObserverTest.php
test/Rx/Observer/CallbackObserverTest.php
<?php namespace Rx\Observer; use Exception; use Rx\TestCase; class CallbackObserverTest extends TestCase { /** * @test */ public function it_calls_the_given_callable_on_next() { $called = false; $observer = new CallbackObserver(function() use (&$called) { $called = true; }); ...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/test/Rx/Observer/AutoDetachObserverTest.php
test/Rx/Observer/AutoDetachObserverTest.php
<?php namespace Rx\Observer; use Exception; use Rx\Disposable\CallbackDisposable; use Rx\TestCase; class AutoDetachObserverTest extends TestCase { /** * @test */ public function it_calls_dispose_on_completed() { $disposed = false; $disposable = new CallbackDisposable(function(...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/test/Rx/Observable/AnonymousObservableTest.php
test/Rx/Observable/AnonymousObservableTest.php
<?php namespace Rx\Observable; use Rx\TestCase; use Rx\Observable; use Rx\Disposable\CallbackDisposable; use Rx\Disposable\EmptyDisposable; class AnonymousObservableTest extends TestCase { /** * @test */ public function it_calls_the_subscribe_action_on_subscribe() { $called = 0; ...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/test/Rx/Observable/GroupedObservableTest.php
test/Rx/Observable/GroupedObservableTest.php
<?php namespace Rx\Observable; use Exception; use Rx\Disposable\RefCountDisposable; use Rx\Observer\CallbackObserver; use Rx\TestCase; class GroupedObservableTest extends TestCase { /** * @test */ public function it_returns_the_disposable_of_the_underlying_disposable() { $this->markTest...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/test/Rx/Observable/ObservableTest.php
test/Rx/Observable/ObservableTest.php
<?php namespace Rx\Observable; use Rx\Observable; use Rx\TestCase; class ObservableTest extends TestCase { /** * @test */ public function it_returns_false_on_trying_to_remove_a_non_subscribed_observer() { $observable = new ConcreteObservable(); $observer = $this->getMock('Rx\Ob...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/test/Rx/Observable/ArrayObservableTest.php
test/Rx/Observable/ArrayObservableTest.php
<?php namespace Rx\Observable; use Rx\Observer\CallbackObserver; class ArrayObservableTest extends \PHPUnit_Framework_TestCase { /** * @test */ public function it_starts_again_if_you_subscribe_again() { $a = [1,2,3]; $o = new ArrayObservable($a); $goodCount = 0; ...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/test/Rx/Observable/ErrorObservableTest.php
test/Rx/Observable/ErrorObservableTest.php
<?php namespace Rx\Observable; use Exception; use RuntimeException; use Rx\TestCase; class ErrorObservableTest extends TestCase { /** @test */ public function it_calls_observers_with_error() { $ex = new RuntimeException('boom!'); $observable = new ErrorObservable($ex); $recordedExcep...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/test/Rx/Observable/ConnectableObservableTest.php
test/Rx/Observable/ConnectableObservableTest.php
<?php namespace Rx\Observable; use Rx\Functional\FunctionalTestCase; use Rx\Observable; use Rx\Observer\CallbackObserver; use Rx\Subject\Subject; use Rx\Testing\TestSubject; class ConnectableObservableTest extends FunctionalTestCase { /** * @test */ public function connectable_observable_creation...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/test/Rx/Subject/SubjectTest.php
test/Rx/Subject/SubjectTest.php
<?php namespace Rx\Subject; use Exception; use Rx\TestCase; class SubjectTest extends TestCase { /** * @test * @expectedException RuntimeException */ public function it_throws_when_subscribing_to_a_disposed_subject() { $subject = new Subject(); $subject->dispose(); ...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/test/Rx/Subject/BehaviorSubjectTest.php
test/Rx/Subject/BehaviorSubjectTest.php
<?php namespace Rx\Subject; use Exception; use Rx\TestCase; class BehaviorSubjectTest extends TestCase { /** * @test * @expectedException RuntimeException */ public function it_throws_when_subscribing_to_a_disposed_subject() { $subject = new BehaviorSubject(); $subject->dis...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/lib/Rx/DisposableInterface.php
lib/Rx/DisposableInterface.php
<?php namespace Rx; interface DisposableInterface { public function dispose(); }
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/lib/Rx/Observable.php
lib/Rx/Observable.php
<?php namespace Rx; use Rx\Observable\AnonymousObservable; use Rx\Observable\ArrayObservable; use Rx\Observable\ConnectableObservable; use Rx\Observable\EmptyObservable; use Rx\Observable\ErrorObservable; use Rx\Observable\IntervalObservable; use Rx\Observable\IteratorObservable; use Rx\Observable\MulticastObservable...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/lib/Rx/ObservableInterface.php
lib/Rx/ObservableInterface.php
<?php namespace Rx; interface ObservableInterface { /** * @param ObserverInterface $observer * @return DisposableInterface */ public function subscribe(ObserverInterface $observer); }
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/lib/Rx/Notification.php
lib/Rx/Notification.php
<?php namespace Rx; /** * Represents a notification to an observer. */ abstract class Notification { private $kind; private $hasValue; /** * @param mixed $kind Kind of notification * @param boolean $hasValue If the notification has a value */ public function __construct($kind, $hasVa...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/lib/Rx/ObserverInterface.php
lib/Rx/ObserverInterface.php
<?php namespace Rx; use Exception; interface ObserverInterface { public function onCompleted(); public function onError(Exception $error); public function onNext($value); }
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/lib/Rx/SchedulerInterface.php
lib/Rx/SchedulerInterface.php
<?php namespace Rx; interface SchedulerInterface { /** * @param callable $action * @param $delay * * @return DisposableInterface */ public function schedule(callable $action, $delay = 0); /** * @param callable $action * * @return DisposableInterface */ pub...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/lib/Rx/React/Promise.php
lib/Rx/React/Promise.php
<?php namespace Rx\React; use Rx\ObservableInterface; use Rx\Observable; use Rx\Observer\CallbackObserver; use Rx\Subject\AsyncSubject; use React\Promise\Deferred; use React\Promise\PromiseInterface; final class Promise { /** * @param mixed $value * @return \React\Promise\Promise A promise resolved to ...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/lib/Rx/React/PromiseFactory.php
lib/Rx/React/PromiseFactory.php
<?php namespace Rx\React; use Rx\Observable; final class PromiseFactory { /** * Returns an observable sequence that invokes the specified factory function whenever a new observer subscribes. * * @param callable $factory * @return \Rx\Observable\AnonymousObservable */ public static fu...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/lib/Rx/Testing/ColdObservable.php
lib/Rx/Testing/ColdObservable.php
<?php namespace Rx\Testing; use Rx\Disposable\CallbackDisposable; use Rx\Disposable\CompositeDisposable; use Rx\Disposable\EmptyDisposable; use Rx\Observable; use Rx\ObserverInterface; class ColdObservable extends Observable { private $scheduler; private $messages; private $subscriptions = []; publi...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/lib/Rx/Testing/TestSubject.php
lib/Rx/Testing/TestSubject.php
<?php namespace Rx\Testing; use Rx\Disposable\CallbackDisposable; use Rx\ObserverInterface; use Rx\Subject\Subject; /** * Class TestSubject * @package Rx\Testing */ class TestSubject extends Subject { /** @var int */ private $subscribeCount; /** @var ObserverInterface */ private $observer; ...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/lib/Rx/Testing/Subscription.php
lib/Rx/Testing/Subscription.php
<?php namespace Rx\Testing; class Subscription { private $subscribed; private $unsubscribed; public function __construct($start, $end = PHP_INT_MAX) { $this->subscribed = $start; $this->unsubscribed = $end; } public function equals(Subscription $other) { return ...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/lib/Rx/Testing/HotObservable.php
lib/Rx/Testing/HotObservable.php
<?php namespace Rx\Testing; use Rx\Disposable\CallbackDisposable; use Rx\Disposable\EmptyDisposable; use Rx\Observable; use Rx\ObserverInterface; class HotObservable extends Observable { private $scheduler; private $messages; private $subscriptions = []; public function __construct($scheduler, array...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/lib/Rx/Testing/TestScheduler.php
lib/Rx/Testing/TestScheduler.php
<?php namespace Rx\Testing; use Rx\Disposable\EmptyDisposable; use Rx\Scheduler\VirtualTimeScheduler; class TestScheduler extends VirtualTimeScheduler { const CREATED = 100; const SUBSCRIBED = 200; const DISPOSED = 1000; public function __construct() { parent::__construct(0, function ($a...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/lib/Rx/Testing/Recorded.php
lib/Rx/Testing/Recorded.php
<?php namespace Rx\Testing; class Recorded { public function __construct($time, $value, $comparer = null) { $this->time = $time; $this->value = $value; $this->comparer = $comparer ?: function ($a, $b) { if (method_exists($a, 'equals')) { return $a->eq...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/lib/Rx/Testing/MockObserver.php
lib/Rx/Testing/MockObserver.php
<?php namespace Rx\Testing; use Exception; use Rx\Notification\OnCompletedNotification; use Rx\Notification\OnErrorNotification; use Rx\Notification\OnNextNotification; use Rx\ObserverInterface; /** * Mock observer that records all messages. */ class MockObserver implements ObserverInterface { private $schedul...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/lib/Rx/Notification/OnCompletedNotification.php
lib/Rx/Notification/OnCompletedNotification.php
<?php namespace Rx\Notification; use Rx\ObserverInterface; use Rx\Notification; class OnCompletedNotification extends Notification { public function __construct() { parent::__construct('C'); } protected function doAcceptObservable(ObserverInterface $observer) { $observer->onCompl...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/lib/Rx/Notification/OnNextNotification.php
lib/Rx/Notification/OnNextNotification.php
<?php namespace Rx\Notification; use Rx\ObserverInterface; use Rx\Notification; class OnNextNotification extends Notification { private $value; public function __construct($value) { parent::__construct('N', true); $this->value = $value; } protected function doAcceptObservable(O...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/lib/Rx/Notification/OnErrorNotification.php
lib/Rx/Notification/OnErrorNotification.php
<?php namespace Rx\Notification; use Exception; use Rx\ObserverInterface; use Rx\Notification; class OnErrorNotification extends Notification { private $exception; public function __construct(Exception $exception) { parent::__construct('E'); $this->exception = $exception; } pro...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/lib/Rx/Disposable/CallbackDisposable.php
lib/Rx/Disposable/CallbackDisposable.php
<?php namespace Rx\Disposable; use Rx\DisposableInterface; class CallbackDisposable implements DisposableInterface { private $action; public function __construct(callable $action) { $this->action = $action; } public function dispose() { $call = $this->action; $call()...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/lib/Rx/Disposable/CompositeDisposable.php
lib/Rx/Disposable/CompositeDisposable.php
<?php namespace Rx\Disposable; use Rx\DisposableInterface; class CompositeDisposable implements DisposableInterface { private $disposables; private $isDisposed = false; public function __construct(array $disposables = []) { $this->disposables = $disposables; } public function dispos...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/lib/Rx/Disposable/RefCountDisposable.php
lib/Rx/Disposable/RefCountDisposable.php
<?php namespace Rx\Disposable; use Rx\DisposableInterface; class RefCountDisposable implements DisposableInterface { private $count = 0; private $disposable; private $isDisposed = false; private $isPrimaryDisposed = false; public function __construct(DisposableInterface $disposable) { ...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/lib/Rx/Disposable/EmptyDisposable.php
lib/Rx/Disposable/EmptyDisposable.php
<?php namespace Rx\Disposable; use Rx\DisposableInterface; class EmptyDisposable implements DisposableInterface { public function dispose() { // do nothing \o/ } }
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/lib/Rx/Disposable/SingleAssignmentDisposable.php
lib/Rx/Disposable/SingleAssignmentDisposable.php
<?php namespace Rx\Disposable; use RuntimeException; use Rx\DisposableInterface; class SingleAssignmentDisposable implements DisposableInterface { private $current; private $isDisposed = false; public function dispose() { $old = null; if (!$this->isDisposed) { $this->isD...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/lib/Rx/Disposable/ScheduledDisposable.php
lib/Rx/Disposable/ScheduledDisposable.php
<?php namespace Rx\Disposable; use Rx\DisposableInterface; use Rx\SchedulerInterface; class ScheduledDisposable implements DisposableInterface { /** @var DisposableInterface */ private $disposable; /** @var SchedulerInterface */ private $scheduler; /** @var bool */ protected $isDisposed = f...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/lib/Rx/Disposable/SerialDisposable.php
lib/Rx/Disposable/SerialDisposable.php
<?php namespace Rx\Disposable; use Rx\DisposableInterface; /** * Class SerialDisposable * @package Rx\Disposable */ class SerialDisposable implements DisposableInterface { /** @var bool */ private $isDisposed = false; /** @var DisposableInterface */ private $disposable = null; public functio...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/lib/Rx/Disposable/BinaryDisposable.php
lib/Rx/Disposable/BinaryDisposable.php
<?php namespace Rx\Disposable; use Rx\DisposableInterface; /** * Class BinaryDisposable * @package Rx\Disposable */ class BinaryDisposable implements DisposableInterface { /** @var \Rx\DisposableInterface */ private $first; /** @var \Rx\DisposableInterface */ private $second; /** @var bool *...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/lib/Rx/Scheduler/PriorityQueue.php
lib/Rx/Scheduler/PriorityQueue.php
<?php namespace Rx\Scheduler; use SplPriorityQueue; class PriorityQueue { private $queue; public function __construct() { $this->queue = new InternalPriorityQueue; } public function enqueue(ScheduledItem $item) { $this->queue->insert($item, $item); } public function...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/lib/Rx/Scheduler/VirtualTimeScheduler.php
lib/Rx/Scheduler/VirtualTimeScheduler.php
<?php namespace Rx\Scheduler; use Rx\Disposable\EmptyDisposable; use Rx\Disposable\SerialDisposable; use Rx\SchedulerInterface; class VirtualTimeScheduler implements SchedulerInterface { protected $clock; protected $comparer; protected $isEnabled = false; protected $queue; /** * @param inte...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/lib/Rx/Scheduler/ImmediateScheduler.php
lib/Rx/Scheduler/ImmediateScheduler.php
<?php namespace Rx\Scheduler; use Rx\Disposable\EmptyDisposable; use Rx\Disposable\CompositeDisposable; use Rx\SchedulerInterface; use InvalidArgumentException; class ImmediateScheduler implements SchedulerInterface { public function schedule(callable $action, $delay = 0) { if ($delay !== 0) { ...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/lib/Rx/Scheduler/ScheduledItem.php
lib/Rx/Scheduler/ScheduledItem.php
<?php namespace Rx\Scheduler; use Rx\Disposable\SingleAssignmentDisposable; class ScheduledItem { private $scheduler; private $state; private $action; private $dueTime; private $comparer; public function __construct($scheduler, $state, $action, $dueTime, $comparer = null) { $this...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/lib/Rx/Scheduler/EventLoopScheduler.php
lib/Rx/Scheduler/EventLoopScheduler.php
<?php namespace Rx\Scheduler; use React\EventLoop\LoopInterface; use Rx\Disposable\CallbackDisposable; use Rx\Disposable\CompositeDisposable; use Rx\SchedulerInterface; class EventLoopScheduler implements SchedulerInterface { private $loop; public function __construct(LoopInterface $loop) { $thi...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/lib/Rx/Operator/ZipOperator.php
lib/Rx/Operator/ZipOperator.php
<?php namespace Rx\Operator; use Rx\Disposable\CompositeDisposable; use Rx\ObservableInterface; use Rx\Observer\CallbackObserver; use Rx\ObserverInterface; use Rx\SchedulerInterface; class ZipOperator implements OperatorInterface { /** @var ObservableInterface[] */ private $sources; /** @var callable */...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/lib/Rx/Operator/FilterOperator.php
lib/Rx/Operator/FilterOperator.php
<?php namespace Rx\Operator; use Rx\ObservableInterface; use Rx\Observer\CallbackObserver; use Rx\ObserverInterface; use Rx\SchedulerInterface; /** * Class FilterOperator * @package Rx\Operator */ class FilterOperator implements OperatorInterface { /** @var callable */ private $predicate; /** * ...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/lib/Rx/Operator/AsObservableOperator.php
lib/Rx/Operator/AsObservableOperator.php
<?php namespace Rx\Operator; use Rx\ObservableInterface; use Rx\ObserverInterface; use Rx\SchedulerInterface; class AsObservableOperator implements OperatorInterface { /** * @inheritDoc */ public function __invoke(ObservableInterface $observable, ObserverInterface $observer, SchedulerInterface $sch...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/lib/Rx/Operator/CountOperator.php
lib/Rx/Operator/CountOperator.php
<?php namespace Rx\Operator; use Rx\ObservableInterface; use Rx\Observer\CallbackObserver; use Rx\ObserverInterface; use Rx\SchedulerInterface; class CountOperator implements OperatorInterface { private $count = 0; private $predicate; /** * Count constructor. * @param callable $predicate ...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/lib/Rx/Operator/SubscribeOnOperator.php
lib/Rx/Operator/SubscribeOnOperator.php
<?php namespace Rx\Operator; use Rx\Disposable\ScheduledDisposable; use Rx\Disposable\SerialDisposable; use Rx\Disposable\SingleAssignmentDisposable; use Rx\ObservableInterface; use Rx\ObserverInterface; use Rx\SchedulerInterface; class SubscribeOnOperator implements OperatorInterface { /** @var SchedulerInterf...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/lib/Rx/Operator/MapOperator.php
lib/Rx/Operator/MapOperator.php
<?php namespace Rx\Operator; use Rx\ObservableInterface; use Rx\Observer\CallbackObserver; use Rx\ObserverInterface; use Rx\SchedulerInterface; class MapOperator implements OperatorInterface { /** @var callable */ private $selector; /** * MapOperator constructor. * @param $selector */ ...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false
asm89/Rx.PHP
https://github.com/asm89/Rx.PHP/blob/eb08c5fe155e6a73a0ce24223f014db31385b7a6/lib/Rx/Operator/TakeUntilOperator.php
lib/Rx/Operator/TakeUntilOperator.php
<?php namespace Rx\Operator; use Rx\Disposable\CompositeDisposable; use Rx\ObservableInterface; use Rx\Observer\CallbackObserver; use Rx\ObserverInterface; use Rx\SchedulerInterface; class TakeUntilOperator implements OperatorInterface { /** @var ObservableInterface */ private $other; public function __...
php
MIT
eb08c5fe155e6a73a0ce24223f014db31385b7a6
2026-01-05T02:13:42.035239Z
false