public function testIndexExitsRejectsNonIntegers() { $this->setExpectedException("Collections\\Exceptions\\InvalidArgumentException"); $col = new Collection('TestClassA'); $col->indexExists("wat"); }