-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# _____ Change Log | ||
# Yii Form Model Change Log | ||
|
||
## 1.0.0 under development | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,30 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<phpunit | ||
bootstrap="vendor/autoload.php" | ||
colors="true" | ||
verbose="true" | ||
failOnRisky="true" | ||
failOnWarning="true" | ||
convertErrorsToExceptions="true" | ||
convertNoticesToExceptions="true" | ||
convertWarningsToExceptions="true" | ||
stopOnFailure="false" | ||
executionOrder="random" | ||
resolveDependencies="true" | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" | ||
bootstrap="vendor/autoload.php" | ||
cacheDirectory=".phpunit.cache" | ||
requireCoverageMetadata="false" | ||
beStrictAboutCoverageMetadata="true" | ||
beStrictAboutOutputDuringTests="true" | ||
executionOrder="random" | ||
failOnRisky="true" | ||
failOnWarning="true" | ||
stopOnFailure="false" | ||
colors="true" | ||
> | ||
<php> | ||
<ini name="error_reporting" value="-1"/> | ||
</php> | ||
|
||
<testsuites> | ||
<testsuite name="Yii _____ tests"> | ||
<testsuite name="Yii Form Model tests"> | ||
<directory>./tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
|
||
<coverage> | ||
<source> | ||
<include> | ||
<directory>./src</directory> | ||
<directory suffix=".php">./src</directory> | ||
</include> | ||
</coverage> | ||
</source> | ||
</phpunit> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Yiisoft\FormModel\Exception; | ||
|
||
final class PropertyNotSupportNestedValuesException extends ValueNotFoundException | ||
{ | ||
public function __construct( | ||
string $property, | ||
private readonly mixed $value, | ||
) { | ||
parent::__construct('Property "' . $property . '" not support nested values.'); | ||
} | ||
|
||
public function getValue(): mixed | ||
{ | ||
return $this->value; | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Yiisoft\FormModel\Exception; | ||
|
||
final class StaticObjectPropertyException extends ValueNotFoundException | ||
{ | ||
public function __construct(string $property) | ||
{ | ||
parent::__construct('Object property is static: "' . $property . '".'); | ||
Check warning on line 11 in src/Exception/StaticObjectPropertyException.php GitHub Actions / mutation / PHP 8.2-ubuntu-latest
Check warning on line 11 in src/Exception/StaticObjectPropertyException.php GitHub Actions / mutation / PHP 8.2-ubuntu-latest
Check warning on line 11 in src/Exception/StaticObjectPropertyException.php GitHub Actions / mutation / PHP 8.2-ubuntu-latest
Check warning on line 11 in src/Exception/StaticObjectPropertyException.php GitHub Actions / mutation / PHP 8.2-ubuntu-latest
Check warning on line 11 in src/Exception/StaticObjectPropertyException.php GitHub Actions / mutation / PHP 8.2-ubuntu-latest
Check warning on line 11 in src/Exception/StaticObjectPropertyException.php GitHub Actions / mutation / PHP 8.2-ubuntu-latest
|
||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Yiisoft\FormModel\Exception; | ||
|
||
final class UndefinedArrayElementException extends ValueNotFoundException | ||
{ | ||
public function __construct(string $property) | ||
{ | ||
parent::__construct('Undefined array element: "' . $property . '".'); | ||
Check warning on line 11 in src/Exception/UndefinedArrayElementException.php GitHub Actions / mutation / PHP 8.2-ubuntu-latest
Check warning on line 11 in src/Exception/UndefinedArrayElementException.php GitHub Actions / mutation / PHP 8.2-ubuntu-latest
Check warning on line 11 in src/Exception/UndefinedArrayElementException.php GitHub Actions / mutation / PHP 8.2-ubuntu-latest
Check warning on line 11 in src/Exception/UndefinedArrayElementException.php GitHub Actions / mutation / PHP 8.2-ubuntu-latest
|
||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Yiisoft\FormModel\Exception; | ||
|
||
final class UndefinedObjectPropertyException extends ValueNotFoundException | ||
{ | ||
public function __construct(string $property) | ||
{ | ||
parent::__construct('Undefined object property: "' . $property . '".'); | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Yiisoft\FormModel\Exception; | ||
|
||
use InvalidArgumentException; | ||
|
||
abstract class ValueNotFoundException extends InvalidArgumentException | ||
{ | ||
} |