public function testAdapterAppendValuesOverNonArray()
 {
     $adapter = new DataContainerArrayAdapter($this->array);
     $adapter->set("key", 'not an array');
     $adapter->append("key", 'one');
     $adapter->append("key", 'two');
     $this->assertEquals(array('not an array', 'one', 'two'), $adapter->get("key"));
 }
 public function testLayerLoadArrayFromTheFileIntoAsDataContainer()
 {
     $this->createValidFile();
     $keyForDataContainer = "conf";
     $varInFile = "configuration";
     $layer = new LoadDataFromFileApplicationLayer($keyForDataContainer, $this->createdFileName, $varInFile);
     $dataContainer = new DataContainerArrayAdapter();
     $this->assertNull($dataContainer->get($keyForDataContainer));
     $layer->run($dataContainer);
     $this->assertEquals($this->expectedDataContainer, $dataContainer->get($keyForDataContainer));
 }