Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Merge branch 'master' of git://github.com/zendframework/zf2
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasweidner committed Jun 26, 2011
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Server/Server.php
Expand Up @@ -22,7 +22,7 @@
* @namespace
*/
namespace Zend\Json\Server;
use Zend\Server\Reflection\Reflection,
use Zend\Server\Reflection,
Zend\Server\Method;

/**
Expand Down
6 changes: 5 additions & 1 deletion test/ServerTest.php
Expand Up @@ -72,7 +72,11 @@ public function testShouldBeAbleToBindFunctionToServer()

public function testShouldBeAbleToBindCallbackToServer()
{
$this->server->addFunction(array($this, 'setUp'));
try {
$this->server->addFunction(array($this, 'setUp'));
} catch (\Zend\Server\Reflection\Exception\RuntimeException $e) {
$this->markTestSkipped('PHPUnit docblocks may be incorrect');
}
$methods = $this->server->getFunctions();
$this->assertTrue($methods->hasMethod('setUp'));
}
Expand Down

0 comments on commit 403ce8d

Please sign in to comment.