1
0
mirror of synced 2024-12-14 07:06:04 +03:00
doctrine2/tests/Ticket381TestCase.php

30 lines
673 B
PHP
Raw Normal View History

2007-07-06 03:02:39 +04:00
<?php
class Doctrine_Ticket381_TestCase extends Doctrine_UnitTestCase {
public function prepareData()
{ }
public function prepareTables() {
$this->tables = array('Book');
parent::prepareTables();
}
public function testTicket()
{
$obj = new Book();
$obj->save();
$obj->set('name', 'yes');
$obj->save();
$this->assertEqual($obj->get('name'), 'yes');
$obj->save();
}
public function testTicket2()
{
$obj = new Book();
$obj->set('name', 'yes2');
$obj->save();
$this->assertEqual($obj->get('name'), 'yes2');
$obj->save();
}
}