public function testSubCollectionWithNullBytes() { $collection = $this->getCollection(); $this->assertInstanceOf('MongoCollection', $collection->{'foo' . chr(0)}); $this->assertSame('test', $collection->getName()); }