public function testAvailableNoDupes()
 {
     $parent = new Platter(array('parent' => 'xyz', 'simple' => 123));
     $platter = new Platter(array('simple' => 'abc'), $parent);
     $this->assertEquals(2, count($platter->available()));
     $this->assertContains('parent', $platter->available());
     $this->assertContains('simple', $platter->available());
 }
 public function testDefined()
 {
     $platter = new Platter(array('simple' => 'abc'));
     $this->assertContains('simple', $platter->defined());
 }
Esempio n. 3
0
 public function testGetResolvesToParent()
 {
     $parentPlatter = new Platter(array('simple' => 'abc'));
     $platter = new Platter(array(), $parentPlatter);
     $this->assertEquals('abc', $platter->get('simple'));
 }