@@ -35,7 +35,7 @@ public function testEmptyConstruct(): void
3535 $ this ->assertFalse ($ fm ->isBlob ());
3636 }
3737
38- public function testIsBinaryStdClassAsObject (): void
38+ public function testIsBinary (): void
3939 {
4040 $ obj = new stdClass ();
4141 $ obj ->charsetnr = 63 ;
@@ -53,41 +53,6 @@ public function testIsBinaryStdClassAsObject(): void
5353 $ this ->assertFalse ($ fm ->isBlob ());
5454 }
5555
56- public function testIsBinaryCustomClassAsObject (): void
57- {
58- $ obj = new stdClass ();
59- $ obj ->charsetnr = 63 ;
60- $ objmd = new FieldMetadata (MYSQLI_TYPE_STRING , 0 , $ obj );
61- $ fm = new FieldMetadata (MYSQLI_TYPE_STRING , 0 , $ objmd );
62- $ this ->assertTrue ($ fm ->isBinary ());
63- $ this ->assertFalse ($ fm ->isEnum ());
64- $ this ->assertFalse ($ fm ->isUniqueKey ());
65- $ this ->assertFalse ($ fm ->isUnsigned ());
66- $ this ->assertFalse ($ fm ->isZerofill ());
67- $ this ->assertFalse ($ fm ->isSet ());
68- $ this ->assertFalse ($ fm ->isNotNull ());
69- $ this ->assertFalse ($ fm ->isPrimaryKey ());
70- $ this ->assertFalse ($ fm ->isMultipleKey ());
71- $ this ->assertFalse ($ fm ->isNumeric ());
72- $ this ->assertFalse ($ fm ->isBlob ());
73- }
74-
75- public function testIsBinary (): void
76- {
77- $ fm = new FieldMetadata (MYSQLI_TYPE_STRING , 0 , (object ) ['charsetnr ' => 63 ]);
78- $ this ->assertTrue ($ fm ->isBinary ());
79- $ this ->assertFalse ($ fm ->isEnum ());
80- $ this ->assertFalse ($ fm ->isUniqueKey ());
81- $ this ->assertFalse ($ fm ->isUnsigned ());
82- $ this ->assertFalse ($ fm ->isZerofill ());
83- $ this ->assertFalse ($ fm ->isSet ());
84- $ this ->assertFalse ($ fm ->isNotNull ());
85- $ this ->assertFalse ($ fm ->isPrimaryKey ());
86- $ this ->assertFalse ($ fm ->isMultipleKey ());
87- $ this ->assertFalse ($ fm ->isNumeric ());
88- $ this ->assertFalse ($ fm ->isBlob ());
89- }
90-
9156 public function testIsNumeric (): void
9257 {
9358 $ fm = new FieldMetadata (MYSQLI_TYPE_INT24 , MYSQLI_NUM_FLAG , (object ) []);
0 commit comments