コード例 #1
0
ファイル: AbstractQuery.php プロジェクト: harp-orm/query
 /**
  * @return string
  */
 public function humanize()
 {
     return Compiler::humanize($this->sql(), $this->getParameters());
 }
コード例 #2
0
ファイル: TestLogger.php プロジェクト: harp-orm/timestamps
 /**
  * Logs with an arbitrary level.
  *
  * @param mixed $level
  * @param string $message
  * @param array $context
  * @return null
  */
 public function log($level, $message, array $context = array())
 {
     $this->entries[] = isset($context['parameters']) ? Compiler::humanize($message, $context['parameters']) : $message;
 }
コード例 #3
0
ファイル: CompilerTest.php プロジェクト: harp-orm/query
 /**
  * @dataProvider dataHumanize
  * @covers ::humanize
  */
 public function testHumanize($statement, $parameters, $expected)
 {
     $this->assertEquals($expected, Compiler::humanize($statement, $parameters));
 }