public function testHasMigrationVersions() { $versions = [['version' => 33], ['version' => 77]]; $result = $this->migration->hasMigrationVersions(new \ArrayIterator($versions), 77); $this->assertTrue($result); $result = $this->migration->hasMigrationVersions(new \ArrayIterator($versions), 22); $this->assertFalse($result); }