I hereby claim:
- I am sprojects on github.
- I am sdaniel (https://keybase.io/sdaniel) on keybase.
- I have a public key ASD9RmFpux0p5wUs97wCBhKL2eaaYDijg1lLESqAT6k3sQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
<?php # -*- coding: utf-8 -*- | |
// function remove_accents() | |
/** | |
* Unaccent the input string string. An example string like `ÀØėÿᾜὨζὅБю` | |
* will be translated to `AOeyIOzoBY`. More complete than : | |
* strtr( (string)$str, | |
* "ÀÁÂÃÄÅàáâãäåÒÓÔÕÖØòóôõöøÈÉÊËèéêëÇçÌÍÎÏìíîïÙÚÛÜùúûüÿÑñ", | |
* "aaaaaaaaaaaaooooooooooooeeeeeeeecciiiiiiiiuuuuuuuuynn" ); | |
* |
public function testReturnsCorrectUser(){ | |
$new_bug = new Bug("Bug title", "Bug description", new User("username", "password", null, null), new Status(null, "OPEN", 1), null); | |
$this->assertEquals(TRUE, $this->bug->getUser()->equals($new_bug->getUser())); | |
} | |
public function testReturnsIncorrectUser(){ | |
$new_bug = new Bug("Bug title", "Bug description", new User("username1", "password1", null, null), new Status(null, "OPEN", 1), null); | |
$this->assertNotEquals(TRUE, $this->bug->getUser()->equals($new_bug->getUser())); | |
} |