コード例 #1
0
ファイル: Configurable.php プロジェクト: honeybee/trellis
 /**
  * Returns the data as an associative array.
  *
  * @return array with all data
  */
 public function getOptionsAsArray()
 {
     return $this->options->toArray();
 }
コード例 #2
0
ファイル: OptionsTest.php プロジェクト: honeybee/trellis
 /**
  * @expectedException \Trellis\Common\Error\RuntimeException
  */
 public function testExchangeArrayFails()
 {
     $options = new Options();
     $options->exchangeArray(array('foo' => 'omg'));
 }