コード例 #1
0
ファイル: ConceptTest.php プロジェクト: luisbrito/Phraseanet
 public function testNarrowCheck()
 {
     $parent = new Concept('/foo');
     $child = new Concept('/foo/bar');
     $this->assertFalse($parent->isNarrowerThan($child));
     $this->assertTrue($child->isNarrowerThan($parent));
     $other = new Concept('/other/bar');
     $this->assertFalse($other->isNarrowerThan($child));
 }