/** * Checks setting a type on a non-empty collection throws the correct exception. * * @expectedException \LogicException */ public function testSetTypeOnNotEmptyThrowsException() { $item = [0 => "hello"]; $collection = new Collection($item); $collection->setType("\\DateTime"); }