Skip to content

Commit

Permalink
Coverage for isset set and get
Browse files Browse the repository at this point in the history
  • Loading branch information
Tofandel committed Nov 6, 2023
1 parent bd62b2f commit 02c6e90
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/Schema/TableDiffTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@ public function testRenamedColumnDeprecationLayer(): void
$diff->renamedColumns = ['old_name' => new Column('new_name', Type::getType(Types::INTEGER))];
self::assertCount(4, $diff->getChangedColumns());
self::assertCount(3, $diff->renamedColumns);

// Test that __isset __set and __get have the default php behavior
$diff->foo = 'baz';
self::assertTrue(isset($diff->renamedColumns));
self::assertTrue(isset($diff->foo));
self::assertEquals('baz', $diff->foo);
}

public function testPrefersNameFromTableObject(): void
Expand Down

0 comments on commit 02c6e90

Please sign in to comment.