本文整理汇总了PHP中PhraseanetTestCase类的典型用法代码示例。如果您正苦于以下问题:PHP PhraseanetTestCase类的具体用法?PHP PhraseanetTestCase怎么用?PHP PhraseanetTestCase使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了PhraseanetTestCase类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: tearDown
public function tearDown()
{
foreach ($this->tearDownHandlers as $handler) {
$handler();
}
parent::tearDown();
}
示例2: tearDown
public function tearDown()
{
if ($this->api) {
$this->api->delete();
}
parent::tearDown();
}
示例3: tearDown
public function tearDown()
{
if (is_file(__DIR__ . '/Fixtures/configuration-maintenance.php')) {
unlink(__DIR__ . '/Fixtures/configuration-maintenance.php');
}
parent::tearDown();
}
示例4: tearDown
public function tearDown()
{
$app = new Application(Application::ENV_TEST);
\phrasea::reset_sbasDatas($app['phraseanet.appbox']);
\phrasea::reset_baseDatas($app['phraseanet.appbox']);
parent::tearDown();
}
示例5: tearDown
/**
* @covers Alchemy\Phrasea\Border\Attribute\MetaField::__destruct
*/
public function tearDown()
{
\PHPUnit_Framework_Error_Warning::$enabled = $this->before;
\PHPUnit_Framework_Error_Notice::$enabled = $this->beforeNotice;
$this->object = null;
parent::tearDown();
}
示例6: tearDownAfterClass
public static function tearDownAfterClass()
{
$app = new Application('test');
\phrasea::reset_sbasDatas($app['phraseanet.appbox']);
\phrasea::reset_baseDatas($app['phraseanet.appbox']);
parent::tearDownAfterClass();
}
示例7: setUp
public function setUp()
{
parent::setUp();
$mock = $this->getMockBuilder('Alchemy\\Phrasea\\Authentication\\Authenticator')->disableOriginalConstructor()->setMethods(array('getUser'))->getMock();
$mock->expects($this->any())->method('getUser')->will($this->returnValue(self::$DI['user']));
self::$DI['app']['authentication'] = $mock;
}
示例8: setUp
public function setUp()
{
parent::setUp();
$this->name = 'name-' . mt_rand();
$this->email = sprintf('name-%s@domain-%s.com', mt_rand(), mt_rand());
$this->object = new Receiver($this->name, $this->email);
}
示例9: setUp
public function setUp()
{
parent::setUp();
$this->object = new Bridge_Api_Auth_OAuth2();
$this->parameters = ['client_id' => "client_id", 'client_secret' => "client_secret", 'redirect_uri' => "redirect_uri", 'scope' => 'super_scope', 'response_type' => 'code', 'token_endpoint' => "one_token_endpoint", 'auth_endpoint' => "one_auth_endpoint"];
$this->mockSettings = $this->getMock("Bridge_AccountSettings", ["get", "set"], [], "", false);
}
示例10: setUp
public function setUp()
{
parent::setUp();
$published = new Zend_Gdata_App_Extension_Published("2011-10-21 12:00:00");
$updated = new Zend_Gdata_App_Extension_Updated("2011-10-21 12:20:00");
$id = new Zend_Gdata_App_Extension_Id("Az2cv12");
$rating = new Zend_Gdata_Extension_Rating(4, 1, 5, 200, 4);
$duration = new Zend_Gdata_YouTube_Extension_Duration(80);
$player = new Zend_Gdata_Media_Extension_MediaPlayer();
$player->setUrl("coucou");
$stat = new Zend_Gdata_YouTube_Extension_Statistics();
$stat->setViewCount("5");
$thumb = new Zend_Gdata_Media_Extension_MediaThumbnail('une url', '120', '90');
$media = new Zend_Gdata_YouTube_Extension_MediaGroup();
$media->setPlayer([$player]);
$media->setDuration($duration);
$media->setVideoId($id);
$media->setThumbnail([$thumb]);
$entry = new Zend_Gdata_YouTube_VideoEntry();
$entry->setMajorProtocolVersion(2);
$entry->setMediaGroup($media);
$entry->setStatistics($stat);
$entry->setRating($rating);
$entry->setVideoCategory("category");
$entry->setVideoDescription("one description");
$entry->setVideoPrivate();
$entry->setVideoTags(['tags']);
$entry->setVideoTitle("hellow");
$entry->setUpdated($updated);
$entry->setPublished($published);
$this->object = new Bridge_Api_Youtube_Element($entry, 'video');
}
示例11: setUp
public function setUp()
{
parent::setUp();
if (!function_exists('xcache_info')) {
$this->markTestSkipped('Xcache not loaded');
}
$this->object = new XcacheCache();
}
示例12: tearDownAfterClass
public static function tearDownAfterClass()
{
if (self::$object instanceof \collection) {
self::$object->delete();
}
self::$object = self::$objectDisable = null;
parent::tearDownAfterClass();
}
示例13: tearDown
public function tearDown()
{
$this->media = null;
if (file_exists($this->filename)) {
unlink($this->filename);
}
parent::tearDown();
}
示例14: setUp
public function setUp()
{
parent::setUp();
$this->control = new UserProvider(self::$DI['app']);
$this->object = new Term($this->value, $this->context);
$this->basicObject = new Term($this->basicValue);
$this->objectWithControl = new Term($this->value2, $this->context2, $this->control, $this->id);
}
示例15: setUp
public function setUp()
{
parent::setUp();
$this->account = API_OAuth2_Account::load_with_user(self::$DI['app'], self::$DI['oauth2-app-user'], self::$DI['user']);
$expires = time() + 100;
$this->code = random::generatePassword(8);
$this->object = API_OAuth2_AuthCode::create(self::$DI['app'], $this->account, $this->code, $expires);
}