コード例 #1
0
ファイル: ConfigurationTest.php プロジェクト: itkg/batch
 /**
  * Renvoi un paramètre par son nom ou false si le paramètre n'existe pas
  *
  * @covers Itkg\Batch\Configuration::getParameter
  */
 public function testGetParameter()
 {
     $parameters = array('PARAMETER_ONE' => 'ONE');
     $this->object->setParameters($parameters);
     $this->assertEquals('ONE', $this->object->getParameter('PARAMETER_ONE'));
     $this->assertEquals(false, $this->object->getParameter('UNKNOWN_PARAMETER'));
 }