jsonspec = array(1, 2, 3, 4, 5, 6, 7, 8, 9); $this->type = 'VIEWER'; $this->IdSpec = new IdSpec($this->jsonspec, $this->type); } /** * Cleans up the environment after running a test. */ protected function tearDown() { $this->IdSpec = null; $this->jsonspec = null; $this->type = null; parent::tearDown(); } /** * Tests IdSpec->fetchUserIds() */ public function testFetchUserIds() { $this->assertEquals($this->jsonspec, $this->IdSpec->fetchUserIds()); } /** * Tests IdSpec::fromJson() */ public function testFromJson() { $result = IdSpec::fromJson('OWNER'); $this->assertTrue($result instanceof IdSpec); } /** * Tests IdSpec->getType() */ public function testGetType() { $this->assertEquals('VIEWER', $this->IdSpec->getType()); } }