Skip to content

Commit

Permalink
Re #298, punting. :[
Browse files Browse the repository at this point in the history
  • Loading branch information
al-the-x committed Apr 26, 2013
1 parent ba91017 commit 9fd5a7e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/ActiveRecordFindTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -451,13 +451,17 @@ public function test_find_by_pk_should_not_use_limit()

public function test_find_by_datetime()
{
if ( getenv('TRAVIS') ) $this->markTestSkipped(
'The Travis CI environment seems to screw this up for unknonwn reasons; ' .
'see Github #298 (https://github.com/kla/php-activerecord/issues/298)'
);

$now = new DateTime();
$arnow = new ActiveRecord\DateTime();
$arnow->setTimestamp($now->getTimestamp());

Author::find(1)->update_attribute('created_at',$now);
// Hard to debug problem, see Github #298...
//$this->assert_not_null(Author::find_by_created_at($now));
$this->assert_not_null(Author::find_by_created_at($now));
$this->assert_not_null(Author::find_by_created_at($arnow));
}
};
Expand Down

1 comment on commit 9fd5a7e

@al-the-x
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this all works, I'll attach to #298 as a PR.

Please sign in to comment.