public function testPConnect() { $this->conn1->expects($this->once())->method('pconnect')->with('localhost')->will($this->returnValue(true)); $this->conn2->expects($this->once())->method('pconnect')->with('localhost')->will($this->returnValue(true)); $this->assertTrue($this->set->pconnect('localhost')); }