public function testSelectCollectionWithNullBytes() { $this->setExpectedException('Exception', 'Collection name cannot contain null bytes'); new \MongoCollection($this->getDatabase(), 'foo' . chr(0)); }