public function getApiDataReturnsExpectedArray() { $data = ['test' => 1, 'test2' => 2]; $stub = $this->getMockForAbstractClass('\\AwsInspector\\Model\\AbstractResource', [$data]); $this->assertSame($data, $stub->getApiData()); }