Exemplo n.º 1
0
 /**
  * @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);
 }
Exemplo n.º 3
0
 /**
  * @test
  */
 public function convertFromShouldReturnSourceString()
 {
     $this->assertEquals('myString', $this->converter->convertFrom('myString', 'string'));
 }