* @license MIT * * @covers \ProxyManager\Signature\Exception\InvalidSignatureException * @group Coverage */ class InvalidSignatureExceptionTest extends PHPUnit_Framework_TestCase { public function testFromInvalidSignature() { $exception = InvalidSignatureException::fromInvalidSignature( new ReflectionClass(__CLASS__), array('foo' => 'bar', 'baz' => 'tab'), 'blah', 'expected-signature' ); $this->assertInstanceOf( 'ProxyManager\Signature\Exception\InvalidSignatureException', $exception ); $this->assertSame( 'Found signature "blah" for class "' . __CLASS__ . '" does not correspond to expected signature "expected-signature" for 2 parameters', $exception->getMessage() ); } }