public function testDelete() { $this->mockClient->expects($this->once())->method('sendCommand')->with($this->isInstanceOf('\\Phue\\Command\\DeleteUser')); $this->user->delete(); }