public function testSetCompatibilityLayerWithConstructor() { $newLayer = new Apache_Solr_Compatibility_Solr4CompatibilityLayer(); $fixture = new Apache_Solr_Service('localhost', 8180, '/solr/', false, $newLayer); $fixture->setCompatibilityLayer($newLayer); $layer = $fixture->getCompatibilityLayer(); $this->assertInstanceOf('Apache_Solr_Compatibility_CompatibilityLayer', $layer); $this->assertInstanceOf('Apache_Solr_Compatibility_Solr4CompatibilityLayer', $layer); $this->assertEquals($newLayer, $layer); }