예제 #1
0
파일: sprig.php 프로젝트: bosoy83/progtest
 /**
  * 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);
 }