Skip to content

Commit

Permalink
Prep 1.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
belgattitude committed Apr 23, 2017
1 parent a3ecac8 commit aff523d
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public function __getJavaInternalObjectId()
}

/**
* @return string
* @return string|null
*/
public function get__signature()
{
Expand Down
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());
}
}

0 comments on commit aff523d

Please sign in to comment.