Exemplo n.º 1
0
 public function testAlwaysMultipleCardinality()
 {
     $container = new Container();
     $this->assertEquals(Cardinality::MULTIPLE, $container->getCardinality());
 }
Exemplo n.º 2
0
 /**
  * @see \qtism\common\collections\Container::checkType()
  */
 protected function checkType($value)
 {
     parent::checkType($value);
     if (!Utils::isBaseTypeCompliant($this->getBaseType(), $value)) {
         Utils::throwBaseTypeTypingError($this->getBaseType(), $value);
     }
 }