- $this->assertEquals("(1, 'toto')", XDB::format('{?}', array(1, 'toto')));
+ $this->assertSame("(1, 'toto')", XDB::format('{?}', array(1, 'toto')));
+ }
+
+ public function testEscapeFormat()
+ {
+ $this->assertSame('blahblah', XDB::format('{?}', new FormatBlah('')));
+ $this->assertSame('blahblahblah', XDB::format('{?}', new FormatBlah('blah')));
+ $this->assertSame('blahBloumblah', XDB::format('{?}', new FormatBlah('Bloum')));