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