for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Tests\PHPSA\Expression;
use PhpParser\Node;
use PHPSA\CompiledExpression;
use PHPSA\Compiler\Expression;
class ExitTest extends \Tests\PHPSA\TestCase
{
public function testExitOpSuccess()
$baseExpression = new Node\Expr\Exit_(
$this->newScalarExpr("test")
);
$compiledExpression = $this->compileExpression($baseExpression);
$this->assertInstanceOfCompiledExpression($compiledExpression);
$this->assertSame(CompiledExpression::STRING, $compiledExpression->getType());
$this->assertSame("test", $compiledExpression->getValue());
}