/**
  * @expectedException \InvalidArgumentException
  */
 public function testConstraintsValidationCanBeUsedOnCollections()
 {
     $testCase = new TestsCases\BaseTestCase();
     $testCase->addListItem(1);
     $testCase->addListItem(2);
     $testCase->addListItem(3);
     $testCase->addListItem(4);
     $testCase->addListItem(5);
 }
 public function testSetMethodCanBeCalledOnAList()
 {
     $testCase = new TestsCases\BaseTestCase();
     $testCase->addListItem("a");
     $testCase->setListItems(array("b"));
     $this->assertEquals("b", $testCase->getListItems()[0]);
 }
 public function testInitializedArraysDifferAtEachInitialization()
 {
     $testCase = new TestsCases\BaseTestCase();
     $testCase->addListItem("foo");
     $testCase2 = new TestsCases\BaseTestCase();
     $this->assertEquals(0, count($testCase2->getListItems()));
 }