public function testGetNameWithoutNameShouldReturnExpectedValue() { $payload = $this->mockPayloadFolder(array('name' => 'test-object')); $client = $this->mockClient(array('fetchProperties' => function ($expectation) use($payload) { $expectation->andReturn($payload); })); $object = new TestObject($client, 'file.ffffffffffffffff.FFFFFFFFFFFFFFFF!123'); $actual = $object->getName(); $this->assertEquals('test-object', $actual); }
public function testGetName() { $obj = new TestObject(); $this->assertEquals("TestObject", $obj->getName()); $this->assertNotEquals("_TestObject", $obj->getName()); }