/** * Makes sure that a blank project ID cannot be set * The Project ID is required during initialization, so setting it manually will not be used directly. * setProjectId() is normally called during the constructor. * * @since 2015-07-20 */ public function testSettingBlankProjectIDThrowsException() { $this->setExpectedException('\\InvalidArgumentException', 'token or project_id not found in any of the available sources'); $ironMQ = new IronMQ(array('project_id' => '', 'token' => 'Token')); $ironMQ->setProjectId(''); }