本文整理汇总了PHP中Tinebase_Exception::getMessage方法的典型用法代码示例。如果您正苦于以下问题:PHP Tinebase_Exception::getMessage方法的具体用法?PHP Tinebase_Exception::getMessage怎么用?PHP Tinebase_Exception::getMessage使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Tinebase_Exception
的用法示例。
在下文中一共展示了Tinebase_Exception::getMessage方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testAppName
public function testAppName()
{
$e = new Tinebase_Exception('test', 123);
$this->assertEquals('Tinebase', $e->getAppName());
$this->assertEquals(123, $e->getCode());
$this->assertEquals('test', $e->getMessage());
}
示例2: testCreateFolderInFolderWithSameName
/**
* test creating a folder in a folder with the same name (below personal folders)
*
* @see: https://forge.tine20.org/mantisbt/view.php?id=10132
*/
public function testCreateFolderInFolderWithSameName()
{
$path = '/personal/' . Tinebase_Core::getUser()->accountLoginName . '/' . $this->_getPersonalFilemanagerContainer()->name;
$this->_json->createNode($path . '/Test1', 'folder', NULL, FALSE);
$this->_json->createNode($path . '/Test1/Test1', 'folder', NULL, FALSE);
$e = new Tinebase_Exception('nothing');
try {
$this->_json->createNode($path . '/Test1/Test1/Test2', 'folder', NULL, FALSE);
} catch (Exception $e) {
$this->fail('The folder couldn\'t be found, so it hasn\'t ben created');
}
$this->assertEquals('nothing', $e->getMessage());
}