Example #1
0
 public function test()
 {
     $bind = new Bind('name', 'Mary');
     $bind->setValue('Hacker');
     $this->assertEquals('Hacker', $bind->getValue());
     $this->assertEquals('name', $bind->getName());
     $this->assertEquals(':name', $bind->getMarker());
 }
Example #2
0
 public function push(Bind $bind)
 {
     $this->bindings[] = $bind;
     $this->args[$bind->getMarker()] = $bind->getValue();
 }