Пример #1
0
 /**
  * {@inheritDoc}
  */
 public function listInstances($name)
 {
     $savedFlows = $this->storage->get(DataManagerInterface::STORAGE_ROOT, array());
     if (array_key_exists($name, $savedFlows)) {
         return array_keys($savedFlows[$name]);
     }
     return array();
 }
 public function testGet()
 {
     $this->assertNull($this->storage->get('foo'));
 }
 public function testGet_defaultWithOtherKeyPresent()
 {
     $this->storage->set('foo1', 'bar1');
     $this->assertSame('bar2', $this->storage->get('foo2', 'bar2'));
 }
Пример #4
0
 protected function retrieveStepData()
 {
     return $this->storage->get($this->getStepDataKey(), array());
 }