Skip to content

Instantly share code, notes, and snippets.

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