public function testThatItParsesAssociationsWithName() { $association = new Association('[Member]-Posts-[Comment]'); $this->assertEquals('Posts', $association->getName()); $this->assertEquals('Member', $association->getFrom()); $this->assertEquals('Comment', $association->getTo()); }