/** * @covers Alchemy\Phrasea\Command\Command::getFormattedDuration */ public function testGetFormattedDuration() { $this->assertRegExp('/50 \\w+/', $this->object->getFormattedDuration(50)); $this->assertRegExp('/1(\\.|,)2 \\w+/', $this->object->getFormattedDuration(70)); }