11<?php
22
33/*
4- * This file is a part of dflydev/dot-access-configuration .
4+ * This file is a part of dflydev/dot-access-data .
55 *
66 * (c) Dragonfly Development Inc.
77 *
@@ -33,14 +33,14 @@ protected function getSampleData()
3333 );
3434 }
3535
36- protected function runSampleDataTests (DataInterface $ configuration )
36+ protected function runSampleDataTests (DataInterface $ data )
3737 {
38- $ this ->assertEquals ('A ' , $ configuration ->get ('a ' ));
39- $ this ->assertEquals ('B ' , $ configuration ->get ('b.b ' ));
40- $ this ->assertEquals (array ('C1 ' , 'C2 ' , 'C3 ' ), $ configuration ->get ('b.c ' ));
41- $ this ->assertEquals ('D3 ' , $ configuration ->get ('b.d.d3 ' ));
42- $ this ->assertEquals (array ('c1 ' , 'c2 ' , 'c3 ' ), $ configuration ->get ('c ' ));
43- $ this ->assertEquals (null , $ configuration ->get ('foo ' ), 'Foo should not exist ' );
38+ $ this ->assertEquals ('A ' , $ data ->get ('a ' ));
39+ $ this ->assertEquals ('B ' , $ data ->get ('b.b ' ));
40+ $ this ->assertEquals (array ('C1 ' , 'C2 ' , 'C3 ' ), $ data ->get ('b.c ' ));
41+ $ this ->assertEquals ('D3 ' , $ data ->get ('b.d.d3 ' ));
42+ $ this ->assertEquals (array ('c1 ' , 'c2 ' , 'c3 ' ), $ data ->get ('c ' ));
43+ $ this ->assertEquals (null , $ data ->get ('foo ' ), 'Foo should not exist ' );
4444 }
4545
4646 public function testAppend ()
@@ -60,9 +60,9 @@ public function testRemote()
6060
6161 public function testGet ()
6262 {
63- $ configuration = new Data ($ this ->getSampleData ());
63+ $ data = new Data ($ this ->getSampleData ());
6464
65- $ this ->runSampleDataTests ($ configuration );
65+ $ this ->runSampleDataTests ($ data );
6666 }
6767
6868 public function testGetData ()
@@ -73,35 +73,35 @@ public function testGetData()
7373 ),
7474 ));
7575
76- $ configuration = $ wrappedData ->getData ('wrapped.sampleData ' );
76+ $ data = $ wrappedData ->getData ('wrapped.sampleData ' );
7777
78- $ this ->runSampleDataTests ($ configuration );
78+ $ this ->runSampleDataTests ($ data );
7979
8080 $ this ->setExpectedException ('RuntimeException ' );
8181
82- $ configuration = $ wrappedData ->getData ('wrapped.sampleData.a ' );
82+ $ data = $ wrappedData ->getData ('wrapped.sampleData.a ' );
8383 }
8484
8585 public function testImport ()
8686 {
87- $ configuration = new Data ();
88- $ configuration ->import ($ this ->getSampleData ());
87+ $ data = new Data ();
88+ $ data ->import ($ this ->getSampleData ());
8989
90- $ this ->runSampleDataTests ($ configuration );
90+ $ this ->runSampleDataTests ($ data );
9191 }
9292
9393 public function testImportData ()
9494 {
95- $ configuration = new Data ();
96- $ configuration ->importData (new Data ($ this ->getSampleData ()));
95+ $ data = new Data ();
96+ $ data ->importData (new Data ($ this ->getSampleData ()));
9797
98- $ this ->runSampleDataTests ($ configuration );
98+ $ this ->runSampleDataTests ($ data );
9999 }
100100
101101 public function testExport ()
102102 {
103- $ configuration = new Data ($ this ->getSampleData ());
103+ $ data = new Data ($ this ->getSampleData ());
104104
105- $ this ->assertEquals ($ this ->getSampleData (), $ configuration ->export ());
105+ $ this ->assertEquals ($ this ->getSampleData (), $ data ->export ());
106106 }
107107}
0 commit comments