public function testSetAdapterPluginManagerWithAdaptersThrowsInvalidArgumentException() { $this->setExpectedException('Zend\\Paginator\\Exception\\InvalidArgumentException', 'Pagination adapter manager must extend AdapterPluginManager; received "array"'); $this->_paginator->setAdapterPluginManager(array(new stdClass())); }