/** * @dataProvider toStringProvider * * @param Container $container * @param string $expected The expected result of a __toString() call. */ public function testToString(Container $container, $expected) { $this->assertEquals($expected, $container->__toString()); }
protected function checkType($value) { parent::checkType($value); if (!Utils::isBaseTypeCompliant($this->getBaseType(), $value)) { Utils::throwBaseTypeTypingError($this->getBaseType(), $value); } }