コード例 #1
0
ファイル: JsonDriverTest.php プロジェクト: jdrich/drest
 public function testRegisterFileValid()
 {
     $tmp = $this->createGoodTmpFile('json');
     $instance = JsonDriver::create([sys_get_temp_dir() . '/' . basename($tmp)]);
     $classes = $instance->getAllClassNames();
     $this->assertSame($classes, ['DrestTests\\Entities\\NoAnnotation\\User']);
 }
コード例 #2
0
ファイル: JsonDriverTest.php プロジェクト: ptheberge/drest
 public function testRegisterFileValid()
 {
     $tmp = $this->createGoodTmpFile('json');
     $this->registerTmpFile($tmp);
     $instance = JsonDriver::create([__DIR__ . '/../Entities/NoAnnotation']);
     $classes = $instance->getAllClassNames();
     $this->assertSame($classes, ['Entities\\NoAnnotation\\User']);
 }