當前位置: 首頁>>代碼示例>>PHP>>正文


PHP PhraseanetTestCase類代碼示例

本文整理匯總了PHP中PhraseanetTestCase的典型用法代碼示例。如果您正苦於以下問題:PHP PhraseanetTestCase類的具體用法?PHP PhraseanetTestCase怎麽用?PHP PhraseanetTestCase使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了PhraseanetTestCase類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: tearDown

 public function tearDown()
 {
     foreach ($this->tearDownHandlers as $handler) {
         $handler();
     }
     parent::tearDown();
 }
開發者ID:luisbrito,項目名稱:Phraseanet,代碼行數:7,代碼來源:AbstractSetupTester.php

示例2: tearDown

 public function tearDown()
 {
     if ($this->api) {
         $this->api->delete();
     }
     parent::tearDown();
 }
開發者ID:luisbrito,項目名稱:Phraseanet,代碼行數:7,代碼來源:AccountSettingsTest.php

示例3: tearDown

 public function tearDown()
 {
     if (is_file(__DIR__ . '/Fixtures/configuration-maintenance.php')) {
         unlink(__DIR__ . '/Fixtures/configuration-maintenance.php');
     }
     parent::tearDown();
 }
開發者ID:luisbrito,項目名稱:Phraseanet,代碼行數:7,代碼來源:MaintenanceSubscriberTest.php

示例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();
 }
開發者ID:luisbrito,項目名稱:Phraseanet,代碼行數:7,代碼來源:InstallerTest.php

示例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();
 }
開發者ID:nlegoff,項目名稱:Phraseanet,代碼行數:10,代碼來源:MetaFieldTest.php

示例6: tearDownAfterClass

 public static function tearDownAfterClass()
 {
     $app = new Application('test');
     \phrasea::reset_sbasDatas($app['phraseanet.appbox']);
     \phrasea::reset_baseDatas($app['phraseanet.appbox']);
     parent::tearDownAfterClass();
 }
開發者ID:romainneutron,項目名稱:Phraseanet,代碼行數:7,代碼來源:InstallerTest.php

示例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;
 }
開發者ID:luisbrito,項目名稱:Phraseanet,代碼行數:7,代碼來源:abstractReportTestCase.php

示例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);
 }
開發者ID:luisbrito,項目名稱:Phraseanet,代碼行數:7,代碼來源:ReceiverTest.php

示例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);
 }
開發者ID:nlegoff,項目名稱:Phraseanet,代碼行數:7,代碼來源:OAuth2Test.php

示例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');
 }
開發者ID:nlegoff,項目名稱:Phraseanet,代碼行數:32,代碼來源:ElementTest.php

示例11: setUp

 public function setUp()
 {
     parent::setUp();
     if (!function_exists('xcache_info')) {
         $this->markTestSkipped('Xcache not loaded');
     }
     $this->object = new XcacheCache();
 }
開發者ID:luisbrito,項目名稱:Phraseanet,代碼行數:8,代碼來源:XcacheCacheTest.php

示例12: tearDownAfterClass

 public static function tearDownAfterClass()
 {
     if (self::$object instanceof \collection) {
         self::$object->delete();
     }
     self::$object = self::$objectDisable = null;
     parent::tearDownAfterClass();
 }
開發者ID:luisbrito,項目名稱:Phraseanet,代碼行數:8,代碼來源:collectionTest.php

示例13: tearDown

 public function tearDown()
 {
     $this->media = null;
     if (file_exists($this->filename)) {
         unlink($this->filename);
     }
     parent::tearDown();
 }
開發者ID:romainneutron,項目名稱:Phraseanet,代碼行數:8,代碼來源:Sha256Test.php

示例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);
 }
開發者ID:nlegoff,項目名稱:Phraseanet,代碼行數:8,代碼來源:TermTest.php

示例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);
 }
開發者ID:romainneutron,項目名稱:Phraseanet,代碼行數:8,代碼來源:AuthCodeTest.php


注:本文中的PhraseanetTestCase類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。