예제 #1
0
파일: diff.php 프로젝트: ronan-gloo/atoum
 public function test__construct()
 {
     $diff = new tools\diff();
     $this->assert->string($diff->getReference())->isEmpty()->string($diff->getData())->isEmpty();
     $diff = new tools\diff($reference = uniqid());
     $this->assert->string($diff->getReference())->isEqualTo($reference)->string($diff->getData())->isEmpty();
     $diff = new tools\diff('', $data = uniqid());
     $this->assert->string($diff->getReference())->isEmpty()->string($diff->getData())->isEqualTo($data);
     $diff = new tools\diff($reference = uniqid(), $data = uniqid());
     $this->assert->string($diff->getReference())->isEqualTo($reference)->string($diff->getData())->isEqualTo($data);
 }