Skip to content

Commit dbb381a

Browse files
committed
Added tests
1 parent 332e6dd commit dbb381a

13 files changed

+141
-42
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<?php
2+
3+
namespace UnitTest\PhpDocReader\Fixtures;
4+
5+
use UnitTest\PhpDocReader\Fixtures\Class3 as ClassClass3;
6+
7+
class Class1
8+
{
9+
public $propNone;
10+
11+
/**
12+
* @var \UnitTest\PhpDocReader\Fixtures\Class2
13+
*/
14+
public $propFQN;
15+
16+
/**
17+
* @var Class2
18+
*/
19+
public $propLocalName;
20+
21+
/**
22+
* @var ClassClass3
23+
*/
24+
public $propAlias;
25+
26+
/**
27+
* @param $paramNone
28+
* @param \UnitTest\PhpDocReader\Fixtures\Class2 $paramFQN
29+
* @param Class2 $paramLocalName
30+
* @param ClassClass3 $paramAlias
31+
*/
32+
public function foo($paramNone, $paramFQN, $paramLocalName, $paramAlias)
33+
{
34+
}
35+
}

tests/UnitTest/PhpDocReader/Fixtures/SomeDependencyFixture.php renamed to tests/UnitTest/PhpDocReader/Fixtures/Class2.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace UnitTest\PhpDocReader\Fixtures;
44

5-
class SomeDependencyFixture
5+
class Class2
66
{
7-
87
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
3+
namespace UnitTest\PhpDocReader\Fixtures;
4+
5+
class Class3
6+
{
7+
}

tests/UnitTest/PhpDocReader/Fixtures/Subspace/SomeDependencyFixture.php

Lines changed: 0 additions & 8 deletions
This file was deleted.

tests/UnitTest/PhpDocReader/Fixtures/Subspace/SomeDependencyFixture2.php

Lines changed: 0 additions & 8 deletions
This file was deleted.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
3+
namespace UnitTest\PhpDocReader\FixturesIssue87;
4+
5+
class SomeDependencyFixture
6+
{
7+
8+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
3+
namespace UnitTest\PhpDocReader\FixturesIssue87\Subspace;
4+
5+
class SomeDependencyFixture
6+
{
7+
8+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
3+
namespace UnitTest\PhpDocReader\FixturesIssue87\Subspace;
4+
5+
class SomeDependencyFixture2
6+
{
7+
8+
}

tests/UnitTest/PhpDocReader/Fixtures/TargetFixture1.php renamed to tests/UnitTest/PhpDocReader/FixturesIssue87/TargetFixture1.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22

3-
namespace UnitTest\PhpDocReader\Fixtures;
3+
namespace UnitTest\PhpDocReader\FixturesIssue87;
44

5-
use UnitTest\PhpDocReader\Fixtures\Subspace\SomeDependencyFixture;
5+
use UnitTest\PhpDocReader\FixturesIssue87\Subspace\SomeDependencyFixture;
66

77
/**
88
* Has a dependency locally aliased from another namespace

tests/UnitTest/PhpDocReader/Fixtures/TargetFixture2.php renamed to tests/UnitTest/PhpDocReader/FixturesIssue87/TargetFixture2.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22

3-
namespace UnitTest\PhpDocReader\Fixtures;
3+
namespace UnitTest\PhpDocReader\FixturesIssue87;
44

5-
use UnitTest\PhpDocReader\Fixtures\Subspace\SomeDependencyFixture2 as SomeDependencyFixture;
5+
use UnitTest\PhpDocReader\FixturesIssue87\Subspace\SomeDependencyFixture2 as SomeDependencyFixture;
66

77
/**
88
* Has a dependency locally aliased to a name in the local namespace of the targets

0 commit comments

Comments
 (0)