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