public function testThrowExceptionOnNegativeSize() { $this->setExpectedException('\\InvalidArgumentException'); $pool = new LRUCache(-2); }