public function testSetAuthenticationCredentialsCallsThroughToTransport() { $username = "******"; $password = "******"; $fixture = new Apache_Solr_Service(); // set a mock transport $mockTransport = $this->getMockHttpTransportInterface(); // setup expected call $mockTransport->expects($this->once())->method('setAuthenticationCredentials')->with($this->equalTo($username), $this->equalTo($password)); $fixture->setHttpTransport($mockTransport); $fixture->setAuthenticationCredentials($username, $password); }