-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…lass-ttl-in-annotations Fix/#62 check trait and parent class ttl in annotations
- Loading branch information
Showing
13 changed files
with
233 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,11 +7,9 @@ cache: | |
- $HOME/.composer/cache | ||
|
||
php: | ||
- 5.3 | ||
- 5.4 | ||
- 5.5 | ||
- 5.6 | ||
- 7 | ||
- 7.1 | ||
- hhvm | ||
|
||
before_script: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,19 +13,19 @@ | |
{"name": "Johannes Schmitt", "email": "[email protected]"} | ||
], | ||
"require": { | ||
"php": ">=5.3.2", | ||
"php": "^5.6 || ^7.0", | ||
"doctrine/lexer": "1.*" | ||
}, | ||
"require-dev": { | ||
"doctrine/cache": "1.*", | ||
"phpunit/phpunit": "4.*" | ||
"phpunit/phpunit": "^5.6.1" | ||
}, | ||
"autoload": { | ||
"psr-0": { "Doctrine\\Common\\Annotations\\": "lib/" } | ||
"psr-4": { "Doctrine\\Common\\Annotations\\": "lib/Doctrine/Common/Annotations" } | ||
}, | ||
"extra": { | ||
"branch-alias": { | ||
"dev-master": "1.3.x-dev" | ||
"dev-master": "1.4.x-dev" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
tests/Doctrine/Tests/Common/Annotations/Fixtures/AbstractController.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?php | ||
|
||
namespace Doctrine\Tests\Common\Annotations\Fixtures; | ||
|
||
abstract class AbstractController | ||
{ | ||
} |
14 changes: 14 additions & 0 deletions
14
tests/Doctrine/Tests/Common/Annotations/Fixtures/ClassThatUsesTraitThatUsesAnotherTrait.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
namespace Doctrine\Tests\Common\Annotations\Fixtures; | ||
|
||
use Doctrine\Tests\Common\Annotations\Fixtures\Annotation\Route; | ||
use Doctrine\Tests\Common\Annotations\Fixtures\Traits\TraitThatUsesAnotherTrait; | ||
|
||
/** | ||
* @Route("/someprefix") | ||
*/ | ||
class ClassThatUsesTraitThatUsesAnotherTrait | ||
{ | ||
use TraitThatUsesAnotherTrait; | ||
} |
22 changes: 22 additions & 0 deletions
22
tests/Doctrine/Tests/Common/Annotations/Fixtures/ControllerWithParentClass.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
namespace Doctrine\Tests\Common\Annotations\Fixtures; | ||
|
||
use Doctrine\Tests\Common\Annotations\Fixtures\Annotation\Template; | ||
use Doctrine\Tests\Common\Annotations\Fixtures\Annotation\Route; | ||
|
||
/** | ||
* @Route("/someprefix") | ||
* @author Johannes M. Schmitt <[email protected]> | ||
*/ | ||
class ControllerWithParentClass extends AbstractController | ||
{ | ||
/** | ||
* @Route("/", name="_demo") | ||
* @Template() | ||
*/ | ||
public function indexAction() | ||
{ | ||
return array(); | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
tests/Doctrine/Tests/Common/Annotations/Fixtures/ControllerWithTrait.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
namespace Doctrine\Tests\Common\Annotations\Fixtures; | ||
|
||
use Doctrine\Tests\Common\Annotations\Fixtures\Annotation\Template; | ||
use Doctrine\Tests\Common\Annotations\Fixtures\Annotation\Route; | ||
use Doctrine\Tests\Common\Annotations\Fixtures\Traits\SecretRouteTrait; | ||
|
||
/** | ||
* @Route("/someprefix") | ||
* @author Johannes M. Schmitt <[email protected]> | ||
*/ | ||
class ControllerWithTrait | ||
{ | ||
use SecretRouteTrait; | ||
|
||
/** | ||
* @Route("/", name="_demo") | ||
* @Template() | ||
*/ | ||
public function indexAction() | ||
{ | ||
return array(); | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
tests/Doctrine/Tests/Common/Annotations/Fixtures/EmptyInterface.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?php | ||
|
||
namespace Doctrine\Tests\Common\Annotations\Fixtures; | ||
|
||
interface EmptyInterface | ||
{ | ||
} |
12 changes: 12 additions & 0 deletions
12
tests/Doctrine/Tests/Common/Annotations/Fixtures/InterfaceThatExtendsAnInterface.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
namespace Doctrine\Tests\Common\Annotations\Fixtures; | ||
|
||
use Doctrine\Tests\Common\Annotations\Fixtures\Annotation\Route; | ||
|
||
/** | ||
* @Route("/someprefix") | ||
*/ | ||
interface InterfaceThatExtendsAnInterface extends EmptyInterface | ||
{ | ||
} |
7 changes: 7 additions & 0 deletions
7
tests/Doctrine/Tests/Common/Annotations/Fixtures/Traits/EmptyTrait.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?php | ||
|
||
namespace Doctrine\Tests\Common\Annotations\Fixtures\Traits; | ||
|
||
trait EmptyTrait | ||
{ | ||
} |
18 changes: 18 additions & 0 deletions
18
tests/Doctrine/Tests/Common/Annotations/Fixtures/Traits/SecretRouteTrait.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
namespace Doctrine\Tests\Common\Annotations\Fixtures\Traits; | ||
|
||
use Doctrine\Tests\Common\Annotations\Fixtures\Annotation\Template; | ||
use Doctrine\Tests\Common\Annotations\Fixtures\Annotation\Route; | ||
|
||
trait SecretRouteTrait | ||
{ | ||
/** | ||
* @Route("/secret", name="_secret") | ||
* @Template() | ||
*/ | ||
public function secretAction() | ||
{ | ||
return array(); | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
tests/Doctrine/Tests/Common/Annotations/Fixtures/Traits/TraitThatUsesAnotherTrait.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?php | ||
|
||
namespace Doctrine\Tests\Common\Annotations\Fixtures\Traits; | ||
|
||
trait TraitThatUsesAnotherTrait | ||
{ | ||
use EmptyTrait; | ||
} |