コード例 #1
0
ファイル: benchmark_test.php プロジェクト: mbcraft/frozen
 public function testBenchmarkObjectMethod()
 {
     Benchmark::__reset();
     $b = Benchmark::start($this, __METHOD__);
     $this->assertEqual($b->get_benchmark_class(), "TestBenchmark", "La classe del benchmark non corrisponde");
     $this->assertEqual($b->get_benchmark_method(), "testBenchmarkObjectMethod", "Il metodo del benchmark non corrisponde");
     $this->assertEqual($b->get_benchmark_signature(), "TestBenchmark@testBenchmarkObjectMethod");
     $this->assertFalse($b->is_finished(), "Il benchmark risulta terminato!");
     Benchmark::stop();
     $this->assertTrue($b->is_finished(), "Il benchmark non risulta terminato!");
 }