public function testPollReturnsTrue() { $this->poller->expects($this->once())->method('poll')->with(0, 0)->willReturn(true); $this->assertTrue(poll([$this->poller, 'poll'], 1000)); }