コード例 #1
0
 /**
  * @test
  */
 public function setGraveyard_newGraveyard_exchangeGraveyard()
 {
     $graveyard = $this->createMock('Scheb\\Tombstone\\Graveyard');
     GraveyardProvider::setGraveyard($graveyard);
     $returnValue = GraveyardProvider::getGraveyard();
     $this->assertSame($graveyard, $returnValue);
 }
コード例 #2
0
ファイル: tombstone.php プロジェクト: scheb/tombstone
 /**
  * @param string $date Any date format strtotime() understands
  * @param string $author Your name
  * @param string|null $label An optional label for the tombstone
  */
 function tombstone($date, $author, $label = null)
 {
     try {
         $trace = \Scheb\Tombstone\Tracing\TraceProvider::getTraceHere();
         \Scheb\Tombstone\GraveyardProvider::getGraveyard()->tombstone($date, $author, $label, $trace);
     } catch (\Exception $e) {
     }
 }