|  | @@ 74-90 (lines=17) @@ | 
                                                            
                                    | 71 |  |     /** | 
                                                            
                                    | 72 |  |      * @throws \ReflectionException | 
                                                            
                                    | 73 |  |      */ | 
                                                            
                                    | 74 |  |     public function testDifferentNamespace(): void | 
                                                            
                                    | 75 |  |     { | 
                                                            
                                    | 76 |  |         $class = Fixtures\Entity::class; | 
                                                            
                                    | 77 |  |         $as = "\EntityProxy" . __LINE__; | 
                                                            
                                    | 78 |  |  | 
                                                            
                                    | 79 |  |         $declaration = new Declaration(new \ReflectionClass($class), $as); | 
                                                            
                                    | 80 |  |         $output = $this->make($declaration); | 
                                                            
                                    | 81 |  |         $output = ltrim($output, '<?php'); | 
                                                            
                                    | 82 |  |  | 
                                                            
                                    | 83 |  |         $this->assertFalse(class_exists($declaration->class->getFullName())); | 
                                                            
                                    | 84 |  |  | 
                                                            
                                    | 85 |  |         eval($output); | 
                                                            
                                    | 86 |  |  | 
                                                            
                                    | 87 |  |         $proxyReflection = new \ReflectionClass($declaration->class->getFullName()); | 
                                                            
                                    | 88 |  |         $this->assertSame('', (string)$proxyReflection->getNamespaceName()); | 
                                                            
                                    | 89 |  |         $this->assertStringNotContainsString('namespace ', $output); | 
                                                            
                                    | 90 |  |     } | 
                                                            
                                    | 91 |  |  | 
                                                            
                                    | 92 |  |     /** | 
                                                            
                                    | 93 |  |      * @throws \ReflectionException | 
                                                                                
                                |  | @@ 293-310 (lines=18) @@ | 
                                                            
                                    | 290 |  |         $this->assertStringContainsString('parent::__construct();', $output); | 
                                                            
                                    | 291 |  |     } | 
                                                            
                                    | 292 |  |  | 
                                                            
                                    | 293 |  |     public function testPromiseMethods(): void | 
                                                            
                                    | 294 |  |     { | 
                                                            
                                    | 295 |  |         $class = Fixtures\Entity::class; | 
                                                            
                                    | 296 |  |         $as = 'EntityProxy' . __LINE__; | 
                                                            
                                    | 297 |  |  | 
                                                            
                                    | 298 |  |         $declaration = new Declaration(new \ReflectionClass($class), $as); | 
                                                            
                                    | 299 |  |         $output = $this->make($declaration); | 
                                                            
                                    | 300 |  |         $output = ltrim($output, '<?php'); | 
                                                            
                                    | 301 |  |  | 
                                                            
                                    | 302 |  |         $this->assertFalse(class_exists($declaration->class->getFullName())); | 
                                                            
                                    | 303 |  |  | 
                                                            
                                    | 304 |  |         eval($output); | 
                                                            
                                    | 305 |  |  | 
                                                            
                                    | 306 |  |         $i = new \ReflectionClass(PromiseInterface::class); | 
                                                            
                                    | 307 |  |         foreach ($i->getMethods() as $method) { | 
                                                            
                                    | 308 |  |             $this->assertStringContainsString("public function {$method->getName()}()", $output); | 
                                                            
                                    | 309 |  |         } | 
                                                            
                                    | 310 |  |     } | 
                                                            
                                    | 311 |  |  | 
                                                            
                                    | 312 |  | //    public function testInheritedProperties(): void | 
                                                            
                                    | 313 |  | //    { |