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 PhabricatorMetaMTAMailBodyTestCase extends PhabricatorTestCase { pub..

Decoded Output download

<?php

final class PhabricatorMetaMTAMailBodyTestCase extends PhabricatorTestCase {

  public function testBodyRender() {
    $expect = <<<EOTEXT
salmon

HEADER
  bass
  trout

EOTEXT;

    $this->assertEmail($expect);
  }

  private function assertEmail($expect) {
    $body = new PhabricatorMetaMTAMailBody();
    $body->addRawSection('salmon');
    $body->addTextSection('HEADER', "bass
trout
");

    $this->assertEqual($expect, $body->render());
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

final class PhabricatorMetaMTAMailBodyTestCase extends PhabricatorTestCase {

  public function testBodyRender() {
    $expect = <<<EOTEXT
salmon

HEADER
  bass
  trout

EOTEXT;

    $this->assertEmail($expect);
  }

  private function assertEmail($expect) {
    $body = new PhabricatorMetaMTAMailBody();
    $body->addRawSection('salmon');
    $body->addTextSection('HEADER', "bass\ntrout\n");

    $this->assertEqual($expect, $body->render());
  }

}

Function Calls

None

Variables

None

Stats

MD5 4e32191135766d7ec2fc304e9c8bd945
Eval Count 0
Decode Time 84 ms