/** * @test * @expectedException \Collections\Exception\InvalidArgumentException */ public function it_should_break_when_it_has_an_invalid_elements_to_instantiate() { $coll = new Set(); $coll->addAll('string'); }
/** * @expectedException RuntimeException */ public function testMergeFail() { $set = new Set([1, 2, 3, 3]); $seq = new Sequence([4, 5, 6, 7]); $set2 = $set->merge($seq); }