Exemplo n.º 1
0
 /** @test */
 public function path_decides_relationship()
 {
     $this->assertEquals(PathRelationship::Nothing, Mycelium::path("foo.bar.goo")->relationship("lol.asd"));
     $this->assertEquals(PathRelationship::Parent, Mycelium::path("foo.bar")->relationship("foo.bar.asd.baz"));
     $this->assertEquals(PathRelationship::Child, Mycelium::path("foo.bar.asd.bar")->relationship("foo.bar"));
     $this->assertEquals(PathRelationship::Identical, Mycelium::path("foo.bar")->relationship("foo.bar"));
 }