diff --git a/composer.json b/composer.json index d0eece4..809ed65 100644 --- a/composer.json +++ b/composer.json @@ -13,6 +13,9 @@ "ext-curl": "*", "rhumsaa/array_column": "~1.1" }, + "require-dev": { + "phpunit/phpunit": "4.6.*@dev" + }, "autoload": { "psr-0": { "Communibase": "src/" diff --git a/phpunit.xml b/phpunit.xml new file mode 100644 index 0000000..e1c53df --- /dev/null +++ b/phpunit.xml @@ -0,0 +1,18 @@ + + + + + ./test/ + + + \ No newline at end of file diff --git a/test/Communibase/FinalizeTest.php b/test/Communibase/FinalizeTest.php new file mode 100644 index 0000000..b42d0ae --- /dev/null +++ b/test/Communibase/FinalizeTest.php @@ -0,0 +1,26 @@ +getMockBuilder('Communibase\Connector') + ->setMethods(null) + ->disableOriginalConstructor() + ->getMock(); + + // must throw exception + $stub->finalize('Person', 'id'); + } + +}