-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a3ecac8
commit aff523d
Showing
2 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
test/src/SolubleTest/Japha/Bridge/Driver/Pjb62/Exception/JavaExceptionTest.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
/** | ||
* Caution: This is only required for SimpleParser | ||
* to maintain compatibility with HHVM. Regular | ||
* usage on PHP will use the NativeParser. | ||
*/ | ||
|
||
namespace SolubleTest\Japha\Bridge\Driver\Pjb62\Exception; | ||
|
||
use Soluble\Japha\Bridge\Driver\Pjb62\Exception\JavaException; | ||
|
||
/** | ||
* Generated by PHPUnit_SkeletonGenerator on 2015-11-13 at 10:21:03. | ||
*/ | ||
class JavaExceptionTest extends \PHPUnit_Framework_TestCase | ||
{ | ||
public function testGetMessage() | ||
{ | ||
$e = new JavaException('java.lang.Exception', 'cool'); | ||
$this->assertEquals('cool', $e->getMessage()); | ||
$this->assertNull($e->get__signature()); | ||
$this->assertInternalType('int', $e->get__java()); | ||
$this->assertInternalType('int', $e->__getJavaInternalObjectId()); | ||
} | ||
} |