/** * @test */ public function convertFromReturnsAnErrorIfSpecifiedStringIsNotNumeric() { $this->assertInstanceOf('TYPO3\\FLOW3\\Error\\Error', $this->converter->convertFrom('not numeric', 'integer')); }
/** * @test */ public function convertFromShouldReturnNullForEmptyString() { $source = ''; $result = $this->converter->convertFrom($source, 'TYPO3\\FLOW3\\Fixtures\\ClassWithSettersAndConstructor'); $this->assertNull($result); }
/** * @test */ public function convertFromShouldReturnSourceString() { $this->assertEquals('myString', $this->converter->convertFrom('myString', 'string')); }