Server IP : 173.249.157.85 / Your IP : 3.21.190.123 Web Server : Apache System : Linux server.frogzhost.com 3.10.0-1127.19.1.el7.x86_64 #1 SMP Tue Aug 25 17:23:54 UTC 2020 x86_64 User : econtech ( 1005) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/econtech/public_html/vendor/psy/psysh/test/Exception/
Current File : /home/econtech/public_html/vendor/psy/psysh/test/Exception/BreakExceptionTest.php
<?php
/*
* This file is part of Psy Shell.
*
* (c) 2012-2018 Justin Hileman
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Psy\Test\Exception;
use Psy\Exception\BreakException;
class BreakExceptionTest extends \PHPUnit\Framework\TestCase
{
public function testInstance()
{
$e = new BreakException();
$this->assertInstanceOf('Psy\Exception\Exception', $e);
$this->assertInstanceOf('Psy\Exception\BreakException', $e);
}
public function testMessage()
{
$e = new BreakException('foo');
$this->assertContains('foo', $e->getMessage());
$this->assertSame('foo', $e->getRawMessage());
}
/**
* @expectedException \Psy\Exception\BreakException
* @expectedExceptionMessage Goodbye
*/
public function testExitShell()
{
BreakException::exitShell();
}
}