예제 #1
0
 public function testCreate()
 {
     $name = 'testuser';
     //create Phactory\Sql\Blueprint object and a new Phactory_Row object
     $phactory_blueprint = new Blueprint('user', ['name' => $name], [], $this->phactory);
     $phactory_row = $phactory_blueprint->create();
     //test $phactory_row is of type Phactory\Sql\Row and that object stored name correctly
     $this->assertInstanceOf('Phactory\\Sql\\Row', $phactory_row);
     $this->assertEquals($phactory_row->name, $name);
 }