/** * @test */ public function getActiveComponentShouldReturnTheComponentAboutToBeEncountered() { $item = new Item(new Rule(1, 'A', array('a', 'b', 'c')), 1); $this->assertEquals('b', $item->getActiveComponent()); }