コード例 #1
0
ファイル: CallbackTest.php プロジェクト: phpfluent/callback
 public function testShouldHaveAnArgumentPaeserByDefault()
 {
     $callback = new Callback(function () {
     });
     $expectedArgumentParserClassName = 'PHPFluent\\Callback\\ArgumentParser\\Automatic';
     $actualArgumentParser = $callback->getArgumentParser();
     $this->assertInstanceOf($expectedArgumentParserClassName, $actualArgumentParser);
 }