当前位置: 首页>>代码示例>>PHP>>正文


PHP Connections::remove方法代码示例

本文整理汇总了PHP中lithium\data\Connections::remove方法的典型用法代码示例。如果您正苦于以下问题:PHP Connections::remove方法的具体用法?PHP Connections::remove怎么用?PHP Connections::remove使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在lithium\data\Connections的用法示例。


在下文中一共展示了Connections::remove方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: tearDown

 public function tearDown()
 {
     Connections::remove('mockconn');
     MockQueryPost::reset();
     MockQueryComment::reset();
     MockGallery::reset();
     MockImage::reset();
     MockImageTag::reset();
     MockTag::reset();
 }
开发者ID:unionofrad,项目名称:lithium,代码行数:10,代码来源:QueryTest.php

示例2: tearDown

 public function tearDown()
 {
     Connections::remove('mocksource');
     Connections::remove('mockconn');
     MockPost::reset();
     MockTag::reset();
     MockComment::reset();
     MockCreator::reset();
     MockSubProduct::reset();
     MockProduct::reset();
     MockPostForValidates::reset();
 }
开发者ID:rapzo,项目名称:lithium,代码行数:12,代码来源:ModelTest.php

示例3: tearDown

 public function tearDown()
 {
     Connections::remove('mockconn');
     MockDatabasePost::reset();
     MockDatabaseComment::reset();
     MockDatabaseTagging::reset();
     MockDatabasePostRevision::reset();
     MockGallery::reset();
     MockImage::reset();
     MockImageTag::reset();
     MockTag::reset();
 }
开发者ID:jianoll,项目名称:lithium,代码行数:12,代码来源:DatabaseTest.php

示例4: testConnectionRemove

 public function testConnectionRemove()
 {
     $result = Connections::add('conn-to-remove', array('type' => 'Mock') + $this->config);
     $expected = $this->config + array('type' => 'Mock');
     $this->assertEqual($expected, $result);
     $result = Connections::get('conn-to-remove');
     $this->assertInstanceOf('lithium\\data\\source\\Mock', $result);
     Connections::remove('conn-to-remove');
     $result = Connections::get('conn-to-remove');
     $this->assertNull($result);
 }
开发者ID:fedeisas,项目名称:lithium,代码行数:11,代码来源:ConnectionsTest.php

示例5: tearDown

 public function tearDown()
 {
     Connections::remove('mockconn');
     MockDocumentPost::reset();
 }
开发者ID:unionofrad,项目名称:lithium,代码行数:5,代码来源:DocumentSetTest.php

示例6: tearDown

 public function tearDown()
 {
     Connections::remove('mockconn');
     MockCouchPost::reset();
 }
开发者ID:rapzo,项目名称:lithium,代码行数:5,代码来源:CouchDbTest.php

示例7: tearDown

 public function tearDown()
 {
     Connections::remove('mock');
     MockDatabasePost::reset();
 }
开发者ID:fedeisas,项目名称:lithium,代码行数:5,代码来源:PostgreSqlTest.php

示例8: testGridFsDeleteWithCustomPrefix

 public function testGridFsDeleteWithCustomPrefix()
 {
     $data = array('_id' => new MongoId());
     $db = new MongoDb($this->_testConfig + array('gridPrefix' => 'custom'));
     $db->server = new MockMongoConnection();
     $db->connection = new MockMongoConnection();
     Connections::add('temp', array('object' => $db));
     MockMongoPost::config(array('meta' => array('source' => 'fs.files', 'connection' => 'temp')));
     MockMongoPost::create($data, array('exists' => true))->delete();
     $this->assertIdentical(null, $db->connection->gridFsPrefix);
     MockMongoPost::config(array('meta' => array('source' => 'custom.files')));
     MockMongoPost::create($data, array('exists' => true))->delete();
     $this->assertIdentical('custom', $db->connection->gridFsPrefix);
     Connections::remove('temp');
 }
开发者ID:fedeisas,项目名称:lithium,代码行数:15,代码来源:MongoDbTest.php

示例9: testDown

 public function testDown()
 {
     Connections::remove('mockconn');
     MockGallery::reset();
     MockImage::reset();
 }
开发者ID:unionofrad,项目名称:lithium,代码行数:6,代码来源:RelationshipTest.php


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