public function testIsCallingSubstr() { $string = new String('Lechuga Ipsum Dolor'); $result = $string->substr(6, 10); $this->assertInstanceOf('Simple\\Type\\String', $result); $this->assertEquals('a Ipsum Do', $string->toString()); }