Example #1
0
 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']);
 }
Example #2
0
 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']);
 }