Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
98 additions
and
42 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 |
---|---|---|
|
@@ -33,7 +33,7 @@ | |
} | ||
}, | ||
"require": { | ||
"php": "^8.1" | ||
"php": "^8.0" | ||
}, | ||
"require-dev": { | ||
"mockery/mockery": "1.5.1", | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Tests\Integration\DTO; | ||
|
||
use ClassTransformer\Attributes\ConvertArray; | ||
|
||
class PurchaseForCacheDto | ||
{ | ||
#[ConvertArray(ProductDTO::class)] | ||
public array $products; | ||
|
||
/** @var UserDTO $user */ | ||
public UserDTO $user; | ||
|
||
/** @var array<UserDTO> $orders Order list */ | ||
public array $clients; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
namespace Tests\Units; | ||
|
||
use ClassTransformer\Exceptions\ClassNotFoundException; | ||
use ClassTransformer\Validators\ClassExistsValidator; | ||
use ClassTransformer\ValueCasting; | ||
use PHPUnit\Framework\TestCase; | ||
use Tests\Units\DTO\ExtendedDto; | ||
use ClassTransformer\Reflection\RuntimeReflectionProperty; | ||
|
||
class ClassExistsValidatorTest extends TestCase | ||
{ | ||
|
||
public function testCreateProperty(): void | ||
{ | ||
$this->expectException(ClassNotFoundException::class); | ||
new ClassExistsValidator('TestClass'); | ||
} | ||
} |
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