/PHP-8.0/Zend/tests/attributes/ |
H A D | 020_userland_attribute_validation.phpt | 6 #[Attribute(Attribute::TARGET_FUNCTION | Attribute::TARGET_METHOD)] 11 var_dump($attr->getName(), $attr->getTarget() == Attribute::TARGET_FUNCTION, $attr->isRepeated()); 18 var_dump($attr->getName(), $attr->getTarget() == Attribute::TARGET_CLASS, $attr->isRepeated()); 30 var_dump($attr->getName(), $attr->getTarget() == Attribute::TARGET_FUNCTION, $attr->isRepeated()); 40 #[Attribute(Attribute::TARGET_CLASS | Attribute::IS_REPEATABLE)] 45 var_dump($attr->getName(), $attr->getTarget() == Attribute::TARGET_CLASS, $attr->isRepeated()); 59 string(70) "Attribute "A1" cannot target class (allowed targets: function, method)" 65 string(35) "Attribute "A1" must not be repeated"
|
H A D | 007_self_reflect_attribute.phpt | 2 Attributes: attributes on Attribute return itself 6 $reflection = new \ReflectionClass(Attribute::class); 15 var_dump($a->flags == Attribute::TARGET_CLASS); 19 string(9) "Attribute" 24 string(9) "Attribute"
|
H A D | 025_internal_repeatable_validation.phpt | 6 #[Attribute] 7 #[Attribute] 12 Fatal error: Attribute "Attribute" must not be repeated in %s
|
H A D | 008_wrong_attribution.phpt | 2 Attributes: Prevent Attribute on non classes 6 #[Attribute] 10 Fatal error: Attribute "Attribute" cannot target function (allowed targets: class) in %s
|
H A D | 024_internal_target_validation.phpt | 6 #[Attribute] 11 Fatal error: Attribute "Attribute" cannot target function (allowed targets: class) in %s
|
H A D | 021_attribute_flags_type_is_validated.phpt | 2 Attribute flags type is validated. 6 #[Attribute("foo")] 11 Fatal error: Attribute::__construct(): Argument #1 ($flags) must be of type int, string given in %s
|
H A D | 005_objects.phpt | 6 #[Attribute(Attribute::TARGET_FUNCTION)] 59 #[Attribute] 75 #[Attribute] 111 string(30) "Attribute class "A2" not found" 114 string(48) "Attribute constructor of class A3 must be public" 117 string(69) "Attribute class A4 does not have a constructor, cannot pass arguments"
|
H A D | 022_attribute_flags_value_is_validated.phpt | 2 Attribute flags value is validated. 6 #[Attribute(-1)]
|
H A D | 023_ast_node_in_validation.phpt | 2 Attribute flags value is validated. 6 #[Attribute(Foo::BAR)]
|
H A D | 032_attribute_validation_scope.phpt | 2 Validation for "Attribute" does not use a scope when evaluating constant ASTs 5 #[Attribute(parent::x)]
|
H A D | 002_rfcexample.phpt | 7 use Attribute; 9 #[Attribute]
|
H A D | 010_unsupported_const_expression.phpt | 2 Attribute arguments support only const expressions.
|
/PHP-8.0/ext/xmlreader/tests/ |
H A D | 004.phpt | 24 echo " Attribute Name: ".$reader->name."\n"; 25 echo " Attribute Value: ".$reader->value."\n"; 37 Attribute Name: num 38 Attribute Value: 1 39 Attribute Name: idx 40 Attribute Value: 2
|
/PHP-8.0/Zend/tests/named_params/ |
H A D | attributes_named_flags.phpt | 2 Named flags parameter for Attribute attribute 6 #[Attribute(flags: Attribute::TARGET_CLASS)] 17 Fatal error: Uncaught Error: Attribute "MyAttribute" cannot target function (allowed targets: class…
|
H A D | attributes_named_flags_incorrect.phpt | 2 Named flags parameter for Attribute attribute (incorrect parameter name) 7 #[Attribute(not_flags: Attribute::TARGET_CLASS)] 18 Fatal error: Uncaught Error: Attribute "MyAttribute" cannot target function (allowed targets: class…
|
/PHP-8.0/Zend/ |
H A D | zend_attributes.stub.php | 5 final class Attribute class 7 public function __construct(int $flags = Attribute::TARGET_ALL) {}
|
H A D | zend_attributes_arginfo.h | 9 ZEND_METHOD(Attribute, __construct); 13 ZEND_ME(Attribute, __construct, arginfo_class_Attribute___construct, ZEND_ACC_PUBLIC)
|
/PHP-8.0/ext/dom/tests/ |
H A D | domelement.phpt | 22 echo 'Attribute num exists?: '.($node->hasAttribute('num')?'Yes':'No')."\n"; 25 echo 'Attribute num exists?: '.($node->hasAttribute('num')?'Yes':'No')."\n"; 38 echo 'Attribute xml:lang exists?: '.($node->hasAttributeNS('http://www.w3.org/XML/1998/namespace', … 42 echo 'Attribute xml:lang exists?: '.($node->hasAttributeNS('http://www.w3.org/XML/1998/namespace', … 90 Attribute num exists?: Yes 92 Attribute num exists?: No 99 Attribute xml:lang exists?: Yes 101 Attribute xml:lang exists?: No
|
H A D | regsiter_node_class.phpt | 8 function testit() { return "HELLO Attribute"; } 40 HELLO Attribute
|
/PHP-8.0/ext/reflection/tests/ |
H A D | bug81208.phpt | 6 #[Attribute(Attribute::TARGET_PROPERTY)]
|
/PHP-8.0/ext/zend_test/tests/ |
H A D | observer_bug81430_1.phpt | 2 Bug #81430 (Attribute instantiation frame accessing invalid frame pointer) 14 #[\Attribute]
|
H A D | observer_bug81430_2.phpt | 2 Bug #81430 (Attribute instantiation leaves dangling execute_data pointer) 14 #[\Attribute]
|
/PHP-8.0/ext/soap/tests/schema/ |
H A D | schema068.phpt | 2 SOAP XML Schema 68: Attribute with fixed value (3) 18 Fatal error: SOAP-ERROR: Encoding: Attribute 'int' has fixed value '5' (value '4' is not allowed) i…
|
/PHP-8.0/ext/intl/tests/ |
H A D | formatter_get_set_text_attribute.phpt | 84 Attribute POSITIVE_PREFIX 90 Attribute POSITIVE_SUFFIX 96 Attribute NEGATIVE_PREFIX 102 Attribute NEGATIVE_SUFFIX 108 Attribute PADDING_CHARACTER 114 Attribute POSITIVE_PREFIX-2
|
H A D | formatter_get_set_text_attribute_var2.phpt | 84 Attribute POSITIVE_PREFIX 90 Attribute POSITIVE_SUFFIX 96 Attribute NEGATIVE_PREFIX 102 Attribute NEGATIVE_SUFFIX 108 Attribute PADDING_CHARACTER 114 Attribute POSITIVE_PREFIX-2
|