// 20 var_dump($n); echo $n; $n = ScripturNum::newFromString("1 Corinthians 1:1-10"); // 21 var_dump($n); echo $n; $n = ScripturNum::newFromString("1Co1.1-2:10"); // 22 var_dump($n); echo $n; $n = ScripturNum::newFromString("3Jo13-15"); // 11 var_dump($n); echo $n; echo "<br />"; echo $n->getAbbrev(); $n = ScripturNum::newFromString("Jude"); // 01 var_dump($n); echo $n; echo "<br />"; echo $n->getAbbrev(); $n = ScripturNum::newFromString("1Co"); // 01 var_dump($n); echo $n; echo "<br />"; echo $n->getAbbrev(); echo ScripturNum::newFromString('3Jo11')->getLongString();
public function test_wholeChapterToPartOfChapterAbbrev() { $n = new ScripturNum('Ro8.1-9.5'); $this->assertEquals('Ro8.1-9.5', $n->getAbbrev()); }