Remove redundant tests
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
This commit is contained in:
parent
4b87169816
commit
02477e1181
@ -34,7 +34,7 @@ class FieldMetadataTest extends AbstractTestCase
|
||||
$this->assertFalse($fm->isBlob());
|
||||
}
|
||||
|
||||
public function testIsBinaryStdClassAsObject(): void
|
||||
public function testIsBinary(): void
|
||||
{
|
||||
$obj = new stdClass();
|
||||
$obj->charsetnr = 63;
|
||||
@ -52,41 +52,6 @@ class FieldMetadataTest extends AbstractTestCase
|
||||
$this->assertFalse($fm->isBlob());
|
||||
}
|
||||
|
||||
public function testIsBinaryCustomClassAsObject(): void
|
||||
{
|
||||
$obj = new stdClass();
|
||||
$obj->charsetnr = 63;
|
||||
$objmd = new FieldMetadata(MYSQLI_TYPE_STRING, 0, $obj);
|
||||
$fm = new FieldMetadata(MYSQLI_TYPE_STRING, 0, $objmd);
|
||||
$this->assertTrue($fm->isBinary());
|
||||
$this->assertFalse($fm->isEnum());
|
||||
$this->assertFalse($fm->isUniqueKey());
|
||||
$this->assertFalse($fm->isUnsigned());
|
||||
$this->assertFalse($fm->isZerofill());
|
||||
$this->assertFalse($fm->isSet());
|
||||
$this->assertFalse($fm->isNotNull());
|
||||
$this->assertFalse($fm->isPrimaryKey());
|
||||
$this->assertFalse($fm->isMultipleKey());
|
||||
$this->assertFalse($fm->isNumeric());
|
||||
$this->assertFalse($fm->isBlob());
|
||||
}
|
||||
|
||||
public function testIsBinary(): void
|
||||
{
|
||||
$fm = new FieldMetadata(MYSQLI_TYPE_STRING, 0, (object) ['charsetnr' => 63]);
|
||||
$this->assertTrue($fm->isBinary());
|
||||
$this->assertFalse($fm->isEnum());
|
||||
$this->assertFalse($fm->isUniqueKey());
|
||||
$this->assertFalse($fm->isUnsigned());
|
||||
$this->assertFalse($fm->isZerofill());
|
||||
$this->assertFalse($fm->isSet());
|
||||
$this->assertFalse($fm->isNotNull());
|
||||
$this->assertFalse($fm->isPrimaryKey());
|
||||
$this->assertFalse($fm->isMultipleKey());
|
||||
$this->assertFalse($fm->isNumeric());
|
||||
$this->assertFalse($fm->isBlob());
|
||||
}
|
||||
|
||||
public function testIsNumeric(): void
|
||||
{
|
||||
$fm = new FieldMetadata(-1, MYSQLI_NUM_FLAG, (object) []);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user