Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php namespace Rx\Functional\Operator; use Rx\Functional\FunctionalTestCase; class DoO..
Decoded Output download
<?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),
onNext(220, 3),
onCompleted(250)
]);
$called = 0;
$this->scheduler->startWithCreate(function () use ($xs, &$called) {
return $xs->doOnCompleted(function () use (&$called) {
$called++;
});
});
$this->assertEquals(1, $called);
}
}
?>
Did this file decode correctly?
Original Code
<?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),
onNext(220, 3),
onCompleted(250)
]);
$called = 0;
$this->scheduler->startWithCreate(function () use ($xs, &$called) {
return $xs->doOnCompleted(function () use (&$called) {
$called++;
});
});
$this->assertEquals(1, $called);
}
}
Function Calls
| None |
Stats
| MD5 | fee04e9d0af0439ac1b5d657cc725334 |
| Eval Count | 0 |
| Decode Time | 88 ms |