|
@@ 888-897 (lines=10) @@
|
| 885 |
|
|
| 886 |
|
EOT; |
| 887 |
|
|
| 888 |
|
public function testGetUpdatedItemSourceContentForClassManager() |
| 889 |
|
{ |
| 890 |
|
$classManager = $this->preapareClassManager(); |
| 891 |
|
$existingFileContent = $this->getContentFile($classManager); |
| 892 |
|
$existingClassReflection = $this->getReflectionClass($classManager); |
| 893 |
|
|
| 894 |
|
$this->assertEquals($this->classContentBeforeUpdate, $existingFileContent); |
| 895 |
|
$updatedContent = $this->getStructureResolver()->getUpdatedItemSourceContent($existingFileContent, $classManager, $existingClassReflection); |
| 896 |
|
$this->assertEquals($this->classContentAfterUpdate, $updatedContent); |
| 897 |
|
} |
| 898 |
|
|
| 899 |
|
public function testGetUpdatedItemSourceContentForInterfaceManager() |
| 900 |
|
{ |
|
@@ 899-909 (lines=11) @@
|
| 896 |
|
$this->assertEquals($this->classContentAfterUpdate, $updatedContent); |
| 897 |
|
} |
| 898 |
|
|
| 899 |
|
public function testGetUpdatedItemSourceContentForInterfaceManager() |
| 900 |
|
{ |
| 901 |
|
$classManager = $this->preapareClassManager(); |
| 902 |
|
$interfaceManager = $classManager->getInterface(); |
| 903 |
|
$existingFileContent = $this->getContentFile($interfaceManager); |
| 904 |
|
$existingClassReflection = $this->getReflectionClass($interfaceManager); |
| 905 |
|
|
| 906 |
|
$this->assertEquals($this->interfaceContentBeforeUpdate, $existingFileContent); |
| 907 |
|
$updatedContent = $this->getStructureResolver()->getUpdatedItemSourceContent($existingFileContent, $interfaceManager, $existingClassReflection); |
| 908 |
|
$this->assertEquals($this->interfaceContentAfterUpdate, $updatedContent); |
| 909 |
|
} |
| 910 |
|
|
| 911 |
|
public function testGetUpdatedItemSourceContentForTestClassManager() |
| 912 |
|
{ |