Skip to content

Commit fab6866

Browse files
committed
added failing test for #22
1 parent 1d5cb61 commit fab6866

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/ActiveRecordTest.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,4 +407,14 @@ public function testAutoIncrement()
407407
$this->assertNotNull($customer);
408408
$this->assertEquals('user6', $customer->name);
409409
}
410+
411+
public function testEscapeData()
412+
{
413+
$customer = new Customer();
414+
$customer->email = "the People's Republic of China";
415+
$customer->save(false);
416+
417+
$c = Customer::findOne(['email' => "the People's Republic of China"]);
418+
$this->assertSame("the People's Republic of China", $c->email);
419+
}
410420
}

0 commit comments

Comments
 (0)