Proper delete of bridge API

This commit is contained in:
Romain Neutron
2012-01-18 20:06:58 +01:00
parent c1bfe45931
commit 0f591c521d

View File

@@ -50,7 +50,8 @@ class BridgeApplication extends PhraseanetWebTestCaseAuthenticatedAbstract
public function tearDown()
{
parent::tearDown();
self::$api->delete();
if(self::$api instanceof Bridge_Api)
self::$api->delete();
if (self::$account instanceof Bridge_Account)
self::$account->delete();
}