/PHP-8.1/Zend/tests/enum/ |
H A D | keyword-no-bc-break.phpt | 6 namespace enum { 12 class enum extends Bar {} 21 class enum {} 23 function enum() { 27 const enum = 'enum constant'; 30 var_dump(new enum()); 31 var_dump(enum()); 32 var_dump(enum); 37 object(enum\Foo)#1 (0) { 39 object(enum)#1 (0) { [all …]
|
H A D | enum-reserved-non-modifiers.phpt | 2 enum keyword is reserved_non_modifiers 6 namespace enum { 9 return 'enum\Foo::bar()'; 16 const enum = 'enum const'; 18 public static function enum() { 23 echo \enum\Foo::bar() . "\n"; 24 echo Foo::enum . "\n"; 25 echo Foo::enum() . "\n"; 30 enum\Foo::bar() 31 enum const [all …]
|
H A D | backed-from.phpt | 6 enum Suit: string { 18 enum Foo: int { 30 enum(Suit::Hearts) 31 enum(Suit::Diamonds) 32 enum(Suit::Clubs) 33 enum(Suit::Spades) 34 enum(Foo::Bar) 35 enum(Foo::Baz) 36 enum(Foo::Beep)
|
H A D | internal_enums.phpt | 35 enum(ZendTestUnitEnum::Bar) 38 enum(ZendTestUnitEnum::Foo) 42 enum(ZendTestUnitEnum::Foo) 44 enum(ZendTestUnitEnum::Bar) 47 enum(ZendTestStringEnum::Foo) 50 enum(ZendTestStringEnum::Bar) 53 enum(ZendTestStringEnum::FortyTwo) 58 enum(ZendTestStringEnum::Foo) 60 enum(ZendTestStringEnum::Bar) 62 enum(ZendTestStringEnum::Baz) [all …]
|
H A D | keyword-whitespace.phpt | 6 enum A {} 7 enum B {} 8 enum C {} 9 enum E {} 10 enum 12 enum
|
H A D | backed-tryFrom.phpt | 6 enum Suit: string { 19 enum Foo: int { 32 enum(Suit::Hearts) 33 enum(Suit::Diamonds) 34 enum(Suit::Clubs) 35 enum(Suit::Spades) 37 enum(Foo::Bar) 38 enum(Foo::Baz) 39 enum(Foo::Beep)
|
H A D | backed-cases-int.phpt | 6 enum Suit: int { 19 enum(Suit::Hearts) 21 enum(Suit::Diamonds) 23 enum(Suit::Clubs) 25 enum(Suit::Spades)
|
H A D | backed-cases-string.phpt | 6 enum Suit: string { 19 enum(Suit::Hearts) 21 enum(Suit::Diamonds) 23 enum(Suit::Clubs) 25 enum(Suit::Spades)
|
H A D | unit-cases.phpt | 6 enum Suit { 21 enum(Suit::Hearts) 23 enum(Suit::Diamonds) 25 enum(Suit::Clubs) 27 enum(Suit::Spades)
|
H A D | traits-no-cases-method.phpt | 12 enum Suit { 27 enum(Suit::Hearts) 29 enum(Suit::Diamonds) 31 enum(Suit::Clubs) 33 enum(Suit::Spades)
|
H A D | backed-negative-int.phpt | 2 Backed enum with negative int 6 enum Foo: int { 20 enum(Foo::Bar) 21 enum(Foo::Baz)
|
H A D | non-backed-enum-with-int-value.phpt | 2 Non-backed enum errors when case has int value 6 enum Foo { 12 Fatal error: Case Bar of non-backed enum Foo must not have a value, try adding ": int" to the enum …
|
H A D | non-backed-enum-with-expr-value.phpt | 2 Non-backed enum errors when case has int expression value 6 enum Foo { 12 Fatal error: Case Bar of non-backed enum Foo must not have a value, try adding ": int" to the enum …
|
H A D | non-backed-enum-with-string-value.phpt | 2 Non-backed enum errors when case has string value 6 enum Foo { 12 Fatal error: Case Bar of non-backed enum Foo must not have a value, try adding ": string" to the en…
|
H A D | namespaces.phpt | 7 enum Bar { 30 enum(Foo\Bar::Baz) 31 enum(Foo\Bar::Baz) 32 enum(Foo\Bar::Baz)
|
H A D | static-methods.phpt | 6 enum Size { 26 enum(Size::Small) 27 enum(Size::Medium) 28 enum(Size::Large)
|
/PHP-8.1/ext/ffi/tests/ |
H A D | 021.phpt | 15 test(4, "enum {a1, b1}"); 16 test(1, "enum __attribute__((packed)) {a2, b2}"); 18 test(4, "enum {a3=0, b3=0x80000000}"); 19 test(8, "enum {a4=-1, b4=0x80000000}"); 20 test(8, "enum {a5=0x80000000, b5=-1}"); 21 test(4, "enum {a6=-1, b6=0x7fffffff}"); 22 test(8, "enum {a7=-1, b7=0x7fffffff, c7}"); 24 test(1, "enum __attribute__((packed)) {a8=0, b8=0xff}"); 25 test(2, "enum __attribute__((packed)) {a9=0, b9=0x100}"); 48 test(1, "enum __attribute__((packed)) {a14=-0x80}"); [all …]
|
H A D | 004.phpt | 10 enum _a; 11 enum _a {e1}; 13 enum _b {e2}; 14 enum _b; 16 typedef enum _c c; 17 enum _c {e3}; 19 enum _d {e4}; 20 typedef enum _d d; 22 enum _e; 24 enum _f; [all …]
|
/PHP-8.1/Zend/tests/ |
H A D | gh9775_2.phpt | 2 GH-9775: Pure enum in array_unique() 6 enum Test 41 enum(Test::COURSES_ADMIN) 43 enum(Test::COURSES_REPORTING_ACCESS) 45 enum(Test::BUNDLES_ADMIN) 47 enum(Test::USERS_ADMIN) 49 enum(Test::B2B_DASHBOARD_ACCESS) 51 enum(Test::INSTRUCTORS_ADMIN) 53 enum(Test::COUPONS_ADMIN) 55 enum(Test::AUTHENTICATED)
|
H A D | gh9775_1.phpt | 2 GH-9775: Backed enum in array_unique() 6 enum Test: string 41 enum(Test::COURSES_ADMIN) 43 enum(Test::COURSES_REPORTING_ACCESS) 45 enum(Test::BUNDLES_ADMIN) 47 enum(Test::USERS_ADMIN) 49 enum(Test::B2B_DASHBOARD_ACCESS) 51 enum(Test::INSTRUCTORS_ADMIN) 53 enum(Test::COUPONS_ADMIN) 55 enum(Test::AUTHENTICATED)
|
/PHP-8.1/ext/intl/tests/ |
H A D | timezone_createTimeZoneIDEnumeration_variant2.phpt | 8 $enum = IntlTimeZone::createTimeZoneIDEnumeration( 10 $countAny = count(iterator_to_array($enum)); 11 $enum = IntlTimeZone::createTimeZoneIDEnumeration( 13 $countCanonical = count(iterator_to_array($enum)); 14 $enum = IntlTimeZone::createTimeZoneIDEnumeration( 16 $countCanonicalLocation = count(iterator_to_array($enum)); 21 $enum = IntlTimeZone::createTimeZoneIDEnumeration( 23 $countAny2 = count(iterator_to_array($enum)); 26 $enum = IntlTimeZone::createTimeZoneIDEnumeration( 28 $values = iterator_to_array($enum);
|
H A D | timezone_createTimeZoneIDEnumeration_basic.phpt | 8 $enum = IntlTimeZone::createTimeZoneIDEnumeration( 12 print_r(iterator_to_array($enum)); 14 $enum = intltz_create_time_zone_id_enumeration( 18 print_r(iterator_to_array($enum));
|
H A D | timezone_createTimeZoneIDEnumeration_variant1.phpt | 8 $enum = IntlTimeZone::createTimeZoneIDEnumeration( 11 $values = iterator_to_array($enum); 15 $enum = IntlTimeZone::createTimeZoneIDEnumeration( 19 $values2 = iterator_to_array($enum);
|
/PHP-8.1/ext/reflection/tests/ |
H A D | gh8444.phpt | 6 enum Foo 13 public Foo $enum = Foo::Bar; 17 echo new \ReflectionProperty('Bar', 'enum'), "\n"; 20 echo new \ReflectionProperty(new Bar, 'enum'), "\n"; 25 Property [ public Foo $enum = Foo::Bar ] 29 Property [ public Foo $enum = Foo::Bar ]
|
/PHP-8.1/ext/zend_test/tests/ |
H A D | internal-call-internal-static-return.phpt | 8 enum IntIntStaticInt : int { 12 enum IntIntStaticString : string { 27 enum(IntIntStaticInt::Life) 28 enum(IntIntStaticInt::Life) 29 enum(IntIntStaticString::ThanksFor) 30 enum(IntIntStaticString::ThanksFor)
|