-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Load all library files automatically in tests
Because it shouldn't be this easy to forget to load a new file. Some files in the libs dir were more a test subject so they were moved to src.
- Loading branch information
Showing
12 changed files
with
93 additions
and
103 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
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
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
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
File renamed without changes.
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,29 @@ | ||
<?php | ||
declare(strict_types = 1); | ||
|
||
namespace Attributes; | ||
|
||
use Waldo\Quux\Blade; | ||
|
||
#[\Attributes\AttributeEntity] // disallowed, no $repositoryClass parameter specified | ||
class ClassWithAttributesAllow | ||
{ | ||
|
||
#[\Attributes\AttributeEntity(repositoryClass: \Attributes\UserRepository::class, readOnly: false)] // disallowed, $repositoryClass present with any value | ||
public function hasAvocado(): bool | ||
{ | ||
} | ||
|
||
|
||
#[\Attributes\AttributeEntity(\Attributes\UserRepository::class)] // allowed, $repositoryClass present with any value | ||
public function hasTuna(): bool | ||
{ | ||
} | ||
|
||
|
||
#[\Attributes\AttributeEntity(Blade::class)] // allowed, $repositoryClass present with any value | ||
public function hasKetchup(): bool | ||
{ | ||
} | ||
|
||
} |
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,29 @@ | ||
<?php | ||
declare(strict_types = 1); | ||
|
||
namespace Attributes; | ||
|
||
use Waldo\Quux\Blade; | ||
|
||
#[AttributeEntity] // disallowed, no $repositoryClass parameter specified | ||
class ClassWithAttributes | ||
{ | ||
|
||
#[AttributeEntity(repositoryClass: UserRepository::class, readOnly: false)] // disallowed, $repositoryClass present with any value | ||
public function hasAvocado(): bool | ||
{ | ||
} | ||
|
||
|
||
#[AttributeEntity(UserRepository::class)] // allowed, $repositoryClass present with any value | ||
public function hasTuna(): bool | ||
{ | ||
} | ||
|
||
|
||
#[AttributeEntity(Blade::class)] // allowed, $repositoryClass present with any value | ||
public function hasKetchup(): bool | ||
{ | ||
} | ||
|
||
} |