Esempio n. 1
0
 /**
  * @param Tx_Oelib_Tests_Unit_Fixtures_TestingModel $firstModel
  * @param Tx_Oelib_Tests_Unit_Fixtures_TestingModel $secondModel
  *
  * @return int
  */
 public function sortByTitleDescending(Tx_Oelib_Tests_Unit_Fixtures_TestingModel $firstModel, Tx_Oelib_Tests_Unit_Fixtures_TestingModel $secondModel)
 {
     return strcmp($secondModel->getTitle(), $firstModel->getTitle());
 }
Esempio n. 2
0
 /**
  * @test
  */
 public function clonedModelHasStringDataFromOriginal()
 {
     $clone = clone $this->subject;
     self::assertSame($this->subject->getTitle(), $clone->getTitle());
 }
Esempio n. 3
0
 /**
  * @test
  */
 public function getOnDeadModelThrowsException()
 {
     $this->setExpectedException('tx_oelib_Exception_NotFound', 'The Tx_Oelib_Tests_Unit_Fixtures_TestingModel with the UID 0' . ' either has been deleted (or has never existed), but still is accessed.');
     $this->subject->markAsDead();
     $this->subject->getTitle();
 }