Skip to content

Commit

Permalink
#43 Adding mockery reference / Minor tweaks in the unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tracend committed Jun 15, 2012
1 parent 7d30502 commit 39bdf18
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
5 changes: 1 addition & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,5 @@
"type": "vcs",
"url": "http://github.com/makesites/kisscms"
}
],
"autoload": {
"psr-0": {"KISSCMS": "./"}
}
]
}
6 changes: 4 additions & 2 deletions test/main.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

class Main extends PHPUnit_Framework_TestCase
use Mockery as m;

class MainTest extends PHPUnit_Framework_TestCase
{
/**
* @var PDO
Expand All @@ -14,7 +16,7 @@ public function setUp()

public function tearDown()
{

m::close();
}

public function testMain()
Expand Down
8 changes: 4 additions & 4 deletions test/phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@
syntaxCheck="false"
>
<testsuites>
<testsuite name="Main">
<directory>./</directory>
<testsuite name="KISSCMS Test Suite">
<directory>../test/</directory>
</testsuite>
</testsuites>

<filter>
<whitelist>
<directory>../</directory>
<exclude>
<directory>../test</directory>
<directory>../test/</directory>
</exclude>
</whitelist>
</filter>

</phpunit>
</phpunit>

0 comments on commit 39bdf18

Please sign in to comment.