コード例 #1
0
 /**
  * @test
  */
 public function bitwiseAndForOracle()
 {
     $databasePlatform = $this->prophesize(MockPlatform::class);
     $databasePlatform->getName()->willReturn('pdo_oracle');
     $this->connectionProphet->quoteIdentifier(Argument::cetera())->will(function ($args) {
         return '"' . $args[0] . '"';
     });
     $this->connectionProphet->getDatabasePlatform()->willReturn($databasePlatform->reveal());
     $this->assertSame('BITAND("aField", 1)', $this->subject->bitAnd('aField', 1));
 }