public function testAncestorKeyIncompletePath() { $ancestor = $this->prophesize(Key::class); $ancestor->state()->willReturn(Key::STATE_INCOMPLETE); $key = new Key('foo'); $key->ancestorKey($ancestor->reveal()); }