public function test_getGoal_shouldReturnExistingGoal() { $idGoal = $this->createAnyGoal(); $this->assertSame(1, $idGoal); $goal = $this->api->getGoal($this->idSite, $idGoal); $this->assertEquals(array('idsite' => '1', 'idgoal' => '1', 'name' => 'MyName1', 'match_attribute' => 'event_action', 'pattern' => 'test', 'pattern_type' => 'exact', 'case_sensitive' => '0', 'allow_multiple' => '0', 'revenue' => '0', 'deleted' => '0'), $goal); }