|
@@ 256-270 (lines=15) @@
|
| 253 |
|
$this->assertNotNull($constructor); |
| 254 |
|
} |
| 255 |
|
|
| 256 |
|
public function testNotContainParentConstructor() |
| 257 |
|
{ |
| 258 |
|
$class = Fixtures\EntityWithoutConstructor::class; |
| 259 |
|
$as = "EntityProxy" . __LINE__; |
| 260 |
|
|
| 261 |
|
$output = $this->make($class, $as); |
| 262 |
|
$output = ltrim($output, "<?php"); |
| 263 |
|
|
| 264 |
|
$schema = new Schema($class, $as); |
| 265 |
|
$this->assertFalse(class_exists($schema->class->getNamespacesName())); |
| 266 |
|
|
| 267 |
|
eval($output); |
| 268 |
|
|
| 269 |
|
$this->assertStringNotContainsString('parent::__construct();', $output); |
| 270 |
|
} |
| 271 |
|
|
| 272 |
|
public function testContainParentConstructor() |
| 273 |
|
{ |
|
@@ 272-286 (lines=15) @@
|
| 269 |
|
$this->assertStringNotContainsString('parent::__construct();', $output); |
| 270 |
|
} |
| 271 |
|
|
| 272 |
|
public function testContainParentConstructor() |
| 273 |
|
{ |
| 274 |
|
$class = Fixtures\EntityWithConstructor::class; |
| 275 |
|
$as = "EntityProxy" . __LINE__; |
| 276 |
|
|
| 277 |
|
$output = $this->make($class, $as); |
| 278 |
|
$output = ltrim($output, "<?php"); |
| 279 |
|
|
| 280 |
|
$schema = new Schema($class, $as); |
| 281 |
|
$this->assertFalse(class_exists($schema->class->getNamespacesName())); |
| 282 |
|
|
| 283 |
|
eval($output); |
| 284 |
|
|
| 285 |
|
$this->assertStringContainsString('parent::__construct();', $output); |
| 286 |
|
} |
| 287 |
|
|
| 288 |
|
public function testPromiseMethods() |
| 289 |
|
{ |