/**
  * @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());
 }