Exemplo n.º 1
0
  public function testNewArrayIsEmpty()
  {
    // 配列を作成します。
    $fixture = array();

    // 配列のサイズは 0 です。
    $this->assertEquals(0, sizeof($fixture));

    $hoge = new Sample();
    $user = $hoge->first_user();
    $this->assertEquals(1, $user["id"]);
  }