Example #1
0
 public function testNums()
 {
     $site = $this->siteInstance();
     $tests = array('1-a' => array('1', 'a'), 'a' => array(null, 'a'), '-a' => array(null, '-a'), '1-1-a' => array('1', '1-a'), '1-1-1' => array('1', '1-1'), '-1-1-1' => array(null, '-1-1-1'));
     foreach ($tests as $key => $value) {
         $page = new Page($site, $key);
         $this->assertEquals($value[0], $page->num());
         $this->assertEquals($value[1], $page->uid());
     }
 }