Пример #1
0
 /**
  * @test
  */
 public function setKeySetsKey()
 {
     $this->fixture->setKey('foo');
     $this->assertSame('foo', $this->fixture->getKey());
 }
Пример #2
0
 /**
  * Callback function for comparing the keys of $testable1 and $testable2.
  *
  * @param Tx_Phpunit_Testable $testable1 the first item to compare
  * @param Tx_Phpunit_Testable $testable2 the second item to compare
  *
  * @return integer
  *         1 if both items need to be swapped, 0 if they have the same key,
  *         and -1 if the order is okay.
  */
 public function sortTestablesByKey(Tx_Phpunit_Testable $testable1, Tx_Phpunit_Testable $testable2)
 {
     return strcmp($testable1->getKey(), $testable2->getKey());
 }
Пример #3
0
 /**
  * @test
  */
 public function setKeySetsKey()
 {
     $this->subject->setKey('foo');
     self::assertSame('foo', $this->subject->getKey());
 }