public function testScopeStopBeforeDateTime() { $this->assertThat(Title::stopBefore(DateTime::createFromFormat('Y-m-d', '2014-12-31'))->get(), new CollectionPropertyCompareDateTimeConstraint(DateTime::createFromFormat('Y-m-d', '2014-12-31'), 'entry_date', '<')); }