Пример #1
0
 public function testCleanSourceName()
 {
     $sources = array('Foo' => 'foo', 'foo' => 'foo', 'Barfoo' => 'barfoo', 'Bar_foo' => 'barfoo', 'Bar_Foo' => 'bar_foo', 'BarFoo' => 'bar_foo');
     $collection = new Collection();
     foreach ($sources as $k => $v) {
         $this->assertEquals($v, $collection->cleanSource($k));
     }
 }
Пример #2
0
 /**
  * Drop a collection by the object
  * @param Collection $object
  * @return multitype:
  */
 protected function dropCollectionByObject(Collection $object)
 {
     return $object->getConnection()->drop();
 }