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 final class ConduitCallTestCase extends PhabricatorTestCase { public function te..
Decoded Output download
<?php
final class ConduitCallTestCase extends PhabricatorTestCase {
public function testConduitPing() {
$call = new ConduitCall('conduit.ping', array());
$result = $call->execute();
$this->assertFalse(empty($result));
}
public function testConduitAuth() {
$call = new ConduitCall('user.whoami', array(), true);
$caught = null;
try {
$result = $call->execute();
} catch (ConduitException $ex) {
$caught = $ex;
}
$this->assertTrue(
($caught instanceof ConduitException),
pht(
'%s should require authentication.',
'user.whoami'));
}
}
?>
Did this file decode correctly?
Original Code
<?php
final class ConduitCallTestCase extends PhabricatorTestCase {
public function testConduitPing() {
$call = new ConduitCall('conduit.ping', array());
$result = $call->execute();
$this->assertFalse(empty($result));
}
public function testConduitAuth() {
$call = new ConduitCall('user.whoami', array(), true);
$caught = null;
try {
$result = $call->execute();
} catch (ConduitException $ex) {
$caught = $ex;
}
$this->assertTrue(
($caught instanceof ConduitException),
pht(
'%s should require authentication.',
'user.whoami'));
}
}
Function Calls
None |
Stats
MD5 | 6f7e66e4d776e0ae224b9a12d8a8f11e |
Eval Count | 0 |
Decode Time | 98 ms |