paginate(array()); } /** * @test * @expectedException RuntimeException */ function shouldFailToPaginateUnsupportedValue() { $dispatcher = new EventDispatcher; $dispatcher->addSubscriber(new PaginationSubscriber); $p = new Paginator($dispatcher); $view = $p->paginate(null, 1, 10); } }