createMock( LocalRepo::class ); $file = ForeignDBFile::newFromTitle( $title, $repoMock ); $this->assertInstanceOf( ForeignDBFile::class, $file ); } }