Exemplo n.º 1
0
 public function testSetAdapter()
 {
     $this->if($field = new coverage\html(uniqid(), uniqid()))->then->object($field->setAdapter($adapter = new atoum\adapter()))->isIdenticalTo($field)->object($field->getAdapter())->isIdenticalTo($adapter)->object($field->setAdapter())->isIdenticalTo($field)->object($field->getAdapter())->isNotIdenticalTo($adapter)->isEqualTo(new atoum\adapter());
 }