assertInstanceOf(Exception::class, $e); $this->assertInstanceOf(BreakException::class, $e); } public function testMessage() { $e = new BreakException('foo'); $this->assertStringContainsString('foo', $e->getMessage()); $this->assertSame('foo', $e->getRawMessage()); } public function testExitShell() { $this->expectException(\Psy\Exception\BreakException::class); $this->expectExceptionMessage('Goodbye'); BreakException::exitShell(); $this->fail(); } }