<repo_name>lioneldiaz/PHPUnit-test<file_sep>/tests/conversion/ConversionTest.php
<?php

use PHPUnit\Framework\TestCase;

require __DIR__ . "/../../src/conversion/Conversion.php";

class ConversionTest extends TestCase {
  
  /** @test */
  public function testConversionCmToMeter () { 
    $conversion = new Conversion(200,5);
    $this->assertEquals(
      2,
      $conversion->doConvertionCmToMeter()
    );
  }

  /** @test */
  public function testConversionMeterToCm () {
    $conversion = new Conversion(200,5);
    $this->assertEquals (
      500,
      $conversion->doConversionMeterToCm()
    );
  }
}<file_sep>/README.md
# PHPUnit-test
How to use PHPUnit to test code.

## Getting Started

### Prerequisites
You should install any web-server

### Installing
Clone the repository
```
git clone https://github.com/lioneldiaz/PHPUnit-test.git
```

* Run test
```
    - cd PHPUnit-test
    - run this command vendor\bin\phpunit
```
## Built With

* [PHP](http://php.net/) - Hypertext Preprocessor is a server-side scripting language designed for Web development, but also used as a general-purpose programming language.
* [PHPUnit](https://phpunit.de/index.html) - is a programmer-oriented testing framework for PHP.

## Contributing

Please read [contributors](https://github.com/lioneldiaz/PHPUnit-test/graphs/contributors)

## Authors

**<NAME>**

## License

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details.
<file_sep>/src/conversion/Conversion.php
<?php 

class Conversion {
  /**
   * @decription Attribute
   */
  private $cm;
  private $meter;

  /**
   * @description Constructor of the Conversion class
   * @param {Number} cm
   * @param {Number} meter
   */
  public function __construct ($cm, $meter) {
    $this->cm = $cm;
    $this->meter = $meter;
  }

  /**
   * @description Do a conversion from cm to meter
   * @return {Number}
   */
  public function doConvertionCmToMeter () {
    return $this->cm / 100;
  }

  /**
   * @description Do a conversion from meter to cm
   * @return {Number}
   */
  public function doConversionMeterToCm () {
    return $this->meter * 100;
  }
}