Skip to content

Commit

Permalink
Adicionado arquivos PHPUnit
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustavo committed Jun 28, 2019
1 parent eb1505c commit b46d9c9
Show file tree
Hide file tree
Showing 1,906 changed files with 145,373 additions and 73,131 deletions.
10 changes: 10 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"autoload": {
"psr-4": {
"src\\" : "src"
}
},
"require-dev": {
"phpunit/phpunit": "^8"
}
}
73,119 changes: 0 additions & 73,119 deletions phpunit

This file was deleted.

11 changes: 11 additions & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit boostrap="vendor/autoload.php"
colors="true"
verbose="true"
stopOnFailure="false">
<testsuites>
<testsuite name="Test suite">
<directory>tests</directory>
</testsuite>
</testsuites>
</phpunit>
11 changes: 0 additions & 11 deletions tests/ControleProjetoTest.php

This file was deleted.

3 changes: 2 additions & 1 deletion tests/ProjetoTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php

include_once './src/Modelo/Projeto.php';
use PHPUnit\Framework\TestCase;

class ProjetoTest extends TestCase {
Expand All @@ -19,7 +20,7 @@ public function testSettersGetters() {
$this->assertEquals("fonte", $projeto->getFonte());
$this->assertEquals("autor", $projeto->getAutor());
$this->assertEquals("sinopse", $projeto->getSinopse());
$this->assertEquals("genero", $projeto->getGenero());
$this->assertEquals("genero", $projeto->getGeneros());
$this->assertEquals(100.00, $projeto->getFundo());
$this->assertEquals("1/1/1", $projeto->getDataDeCriacao());
}
Expand Down
1 change: 1 addition & 0 deletions tests/UsuarioTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php

include_once './src/Modelo/Usuario.php';
use PHPUnit\Framework\TestCase;

class UsuarioTest extends TestCase {
Expand Down
7 changes: 7 additions & 0 deletions vendor/autoload.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

// autoload.php @generated by Composer

require_once __DIR__ . '/composer/autoload_real.php';

return ComposerAutoloaderInit7113e6237e4b8af22294dd6523feba1c::getLoader();
1 change: 1 addition & 0 deletions vendor/bin/phpunit
Loading

0 comments on commit b46d9c9

Please sign in to comment.