Skip to content

Instantly share code, notes, and snippets.

@clauswitt
Created September 20, 2010 09:16
Show Gist options
  • Save clauswitt/587647 to your computer and use it in GitHub Desktop.
Save clauswitt/587647 to your computer and use it in GitHub Desktop.
public function testGetRomanNumeral()
{
$this->assertEquals('M', $this->object->getRomanNumeral(1000));
$this->assertEquals('C', $this->object->getRomanNumeral(100));
$this->assertEquals('X', $this->object->getRomanNumeral(10));
$this->assertEquals('I', $this->object->getRomanNumeral(1));
$this->assertEquals('D', $this->object->getRomanNumeral(500));
$this->assertEquals('L', $this->object->getRomanNumeral(50));
$this->assertEquals('V', $this->object->getRomanNumeral(5));
$this->assertEquals('CM', $this->object->getRomanNumeral(900));
$this->assertEquals('XC', $this->object->getRomanNumeral(90));
$this->assertEquals('IX', $this->object->getRomanNumeral(9));
$this->assertEquals('MCMLXXX', $this->object->getRomanNumeral(1980));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment