Skip to content

Instantly share code, notes, and snippets.

@KendallHopkins
Created July 14, 2011 18:28
Show Gist options
  • Save KendallHopkins/1083076 to your computer and use it in GitHub Desktop.
Save KendallHopkins/1083076 to your computer and use it in GitHub Desktop.
<?php
function testPropelBug()
{
$log1 = new DB_log();
$log1->save();
$log2 = new DB_log();
$log2->save();
$log1->delete(); //resets the peer
PHPUnit_Framework_TestCase::assertSame( $log2, DB_logPeer::retrieveByPK( $log2->getId() ) );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment