Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit cc74134

Browse files
committed
Separated new tests to separate methods
- Testing different behaviors.
1 parent 2139395 commit cc74134

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/Generator/ClassGeneratorTest.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1094,13 +1094,25 @@ public function testCorrectExtendNames()
10941094
$classGenerator->addUse('Zend\Code\NameInformation');
10951095
$classGenerator->setExtendedClass('Zend\Code\NameInformation');
10961096
$this->assertContains('class ClassName extends NameInformation', $classGenerator->generate());
1097+
}
10971098

1099+
/**
1100+
* @group 75
1101+
*/
1102+
public function testCorrectlyExtendsFullyQualifiedParentClass()
1103+
{
10981104
$classGenerator = new ClassGenerator();
10991105
$classGenerator->setName('ClassName');
11001106
$classGenerator->setNamespaceName('SomeNamespace');
11011107
$classGenerator->setExtendedClass('DateTime');
11021108
$this->assertContains('class ClassName extends \DateTime', $classGenerator->generate());
1109+
}
11031110

1111+
/**
1112+
* @group 75
1113+
*/
1114+
public function testCorrectlyExtendsRelativeParentClass()
1115+
{
11041116
$classGenerator = new ClassGenerator();
11051117
$classGenerator->setName('ClassName');
11061118
$classGenerator->setExtendedClass('DateTime');

0 commit comments

Comments
 (0)