| Zeile 1302... |
Zeile 1302... |
| 1302 |
*
|
1302 |
*
|
| 1303 |
* @deprecated https://github.com/sebastianbergmann/phpunit/issues/4601
|
1303 |
* @deprecated https://github.com/sebastianbergmann/phpunit/issues/4601
|
| 1304 |
*/
|
1304 |
*/
|
| 1305 |
public static function assertObjectHasAttribute(string $attributeName, $object, string $message = ''): void
|
1305 |
public static function assertObjectHasAttribute(string $attributeName, $object, string $message = ''): void
|
| 1306 |
{
|
1306 |
{
|
| 1307 |
self::createWarning('assertObjectHasAttribute() is deprecated and will be removed in PHPUnit 10.');
|
1307 |
self::createWarning('assertObjectHasAttribute() is deprecated and will be removed in PHPUnit 10. Refactor your test to use assertObjectHasProperty() (PHPUnit 10.1.0+) instead.');
|
| Zeile 1308... |
Zeile 1308... |
| 1308 |
|
1308 |
|
| 1309 |
if (!self::isValidObjectAttributeName($attributeName)) {
|
1309 |
if (!self::isValidObjectAttributeName($attributeName)) {
|
| 1310 |
throw InvalidArgumentException::create(1, 'valid attribute name');
|
1310 |
throw InvalidArgumentException::create(1, 'valid attribute name');
|
| Zeile 1332... |
Zeile 1332... |
| 1332 |
*
|
1332 |
*
|
| 1333 |
* @deprecated https://github.com/sebastianbergmann/phpunit/issues/4601
|
1333 |
* @deprecated https://github.com/sebastianbergmann/phpunit/issues/4601
|
| 1334 |
*/
|
1334 |
*/
|
| 1335 |
public static function assertObjectNotHasAttribute(string $attributeName, $object, string $message = ''): void
|
1335 |
public static function assertObjectNotHasAttribute(string $attributeName, $object, string $message = ''): void
|
| 1336 |
{
|
1336 |
{
|
| 1337 |
self::createWarning('assertObjectNotHasAttribute() is deprecated and will be removed in PHPUnit 10.');
|
1337 |
self::createWarning('assertObjectNotHasAttribute() is deprecated and will be removed in PHPUnit 10. Refactor your test to use assertObjectNotHasProperty() (PHPUnit 10.1.0+) instead.');
|
| Zeile 1338... |
Zeile 1338... |
| 1338 |
|
1338 |
|
| 1339 |
if (!self::isValidObjectAttributeName($attributeName)) {
|
1339 |
if (!self::isValidObjectAttributeName($attributeName)) {
|
| 1340 |
throw InvalidArgumentException::create(1, 'valid attribute name');
|
1340 |
throw InvalidArgumentException::create(1, 'valid attribute name');
|