Esempio n. 1
0
 /**
  *
  */
 public function testProcessKey()
 {
     $const = new ConstantInstructor();
     $const->setConstants(['this' => 'all', 'ugly' => 'awesome']);
     $keys = ['<this>>_things' => 'space', 'are_<ugly>>' => 'ace'];
     // yes, its true because its simply an array
     $this->assertEquals(true, $const->canProcessKey($keys));
     $keys = ['<<this>>_things' => 'space', 'are_<<ugly>>' => 'ace'];
     $this->assertEquals(true, $const->canProcessKey($keys));
     $advini = new Advini();
     $adapter = new AdviniAdapter($advini);
     $const->processKey($adapter, $keys);
     $hash = serialize($keys);
     $this->assertEquals($hash, self::SERIALIZE_KEYS);
 }