• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP PhraseanetTestCase类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中PhraseanetTestCase的典型用法代码示例。如果您正苦于以下问题:PHP PhraseanetTestCase类的具体用法?PHP PhraseanetTestCase怎么用?PHP PhraseanetTestCase使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了PhraseanetTestCase类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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


示例16: tearDown

 public function tearDown()
 {
     $finder = new Finder();
     $finder->files()->in($this->root);
     foreach ($finder as $file) {
         unlink($file->getRealPath());
     }
     parent::tearDown();
 }
开发者ID:luisbrito,项目名称:Phraseanet,代码行数:9,代码来源:LogFileTestCase.php


示例17: 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->token = random::generatePassword(8);
     $this->scope = 'scopidou';
     $this->object = API_OAuth2_RefreshToken::create(self::$DI['app'], $this->account, $expires, $this->token, $this->scope);
 }
开发者ID:romainneutron,项目名称:Phraseanet,代码行数:9,代码来源:RefreshTokenTest.php


示例18: setUp

 public function setUp()
 {
     parent::setUp();
     $_SERVER['SERVER_SOFTWARE'] = 'apache';
     $this->objects['apache'] = new system_server();
     $_SERVER['SERVER_SOFTWARE'] = 'nginx';
     $this->objects['nginx'] = new system_server();
     $_SERVER['SERVER_SOFTWARE'] = 'lighttpd';
     $this->objects['lighttpd'] = new system_server();
 }
开发者ID:romainneutron,项目名称:Phraseanet,代码行数:10,代码来源:serverTest.php


示例19: tearDownAfterClass

 public static function tearDownAfterClass()
 {
     if (null !== self::$userSettings) {
         self::$DI['app']['conf']->set('user-settings', self::$userSettings);
     }
     if (null !== self::$appSettings) {
         self::$DI['app']['conf']->set('registry', self::$appSettings);
     }
     self::$userSettings = self::$appSettings = null;
     parent::tearDownAfterClass();
 }
开发者ID:luisbrito,项目名称:Phraseanet,代码行数:11,代码来源:DisplaySettingServiceTest.php


示例20: setUp

 public function setUp()
 {
     parent::setUp();
     if (!extension_loaded('apc')) {
         $this->markTestSkipped('Apc is not installed');
     }
     if (!ini_get('apc.enable_cli')) {
         $this->markTestSkipped('Apc is not loaded in CLI');
     }
     $this->object = new ApcCache();
 }
开发者ID:luisbrito,项目名称:Phraseanet,代码行数:11,代码来源:ApcCacheTest.php



注:本文中的PhraseanetTestCase类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP PhrictionDocument类代码示例发布时间:2022-05-23
下一篇:
PHP Phrase类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap