コード例 #1
0
ファイル: MethodTest.php プロジェクト: wookieb/zorro-rpc
 public function testShouldDetectNumOfRequiredArgumentsWhenSomeOfThemAreOptional()
 {
     $method = new Method('name', function ($arg1, $arg2, $arg3 = 1) {
     });
     $this->assertEquals(array(2 => 1), $method->getDefaultArguments());
     $this->assertSame(2, $method->getNumOfRequiredArguments());
 }