public function testCloseFalse() { $this->mock->expects($this->once())->method('close')->will($this->returnValue(false)); $this->assertFalse($this->proxy->isActive()); $this->proxy->close(); $this->assertFalse($this->proxy->isActive()); }