Esempio n. 1
0
 /**
  * Ensure that loading a sprig by way of a char field with an int value
  * retains its string type
  *
  * @return null
  *
  * @group ticket61
  */
 public function testCharViaInt()
 {
     $tag = Sprig::Factory('Test_Tag', array('name' => 1234))->load();
     $this->assertTrue($tag->loaded());
     $this->assertSame('01234', $tag->name);
 }