/** * @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()); }
/** * @test */ public function clonedModelHasStringDataFromOriginal() { $clone = clone $this->subject; self::assertSame($this->subject->getTitle(), $clone->getTitle()); }
/** * @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(); }