public function testMagicToStringShouldNotThrowException() { set_error_handler(array($this, 'toStringErrorHandler')); $this->_helper->menu()->setPartial(array(1337)); $this->_helper->__toString(); restore_error_handler(); $this->assertContains('array must contain two values', $this->_errorMessage); }