Skip to content

Instantly share code, notes, and snippets.

View SProjects's full-sized avatar

Daniel Sebuuma SProjects

  • Kampala, Uganda
View GitHub Profile

Keybase proof

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:

<?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" );
*
@SProjects
SProjects / BugTest.php
Created September 16, 2014 10:08
Is this the right way to test positive and negative assertions.
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()));
}