Skip to content
This repository
Browse code

Updated PEAR package.xml and added an AdhocTest case

  • Loading branch information...
commit 4e1f4200cc59c4e61cc165aaedb249c1d5ce5085 1 parent ca29a16
Pádraic Brady authored

Showing 2 changed files with 50 additions and 4 deletions. Show diff stats Hide diff stats

  1. +4 4 package.xml
  2. +46 0 tests/Mockery/AdhocTest.php
8 package.xml
@@ -10,11 +10,11 @@
10 10 <email>padraic.brady@yahoo.com</email>
11 11 <active>yes</active>
12 12 </lead>
13   - <date>2011-04-18</date>
14   - <time>19:10:59</time>
  13 + <date>2012-01-24</date>
  14 + <time>20:00:00</time>
15 15 <version>
16   - <release>0.7.0</release>
17   - <api>0.7.0</api>
  16 + <release>0.7.2</release>
  17 + <api>0.7.2</api>
18 18 </version>
19 19 <stability>
20 20 <release>stable</release>
46 tests/Mockery/AdhocTest.php
... ... @@ -0,0 +1,46 @@
  1 +<?php
  2 +/**
  3 + * Mockery
  4 + *
  5 + * LICENSE
  6 + *
  7 + * This source file is subject to the new BSD license that is bundled
  8 + * with this package in the file LICENSE.txt.
  9 + * It is also available through the world-wide-web at this URL:
  10 + * http://github.com/padraic/mutateme/master/LICENSE
  11 + * If you did not receive a copy of the license and are unable to
  12 + * obtain it through the world-wide-web, please send an email
  13 + * to padraic@php.net so we can send you a copy immediately.
  14 + *
  15 + * @category Mockery
  16 + * @package Mockery
  17 + * @subpackage UnitTests
  18 + * @copyright Copyright (c) 2012 Pádraic Brady (http://blog.astrumfutura.com)
  19 + * @license http://github.com/padraic/mockery/blob/master/LICENSE New BSD License
  20 + */
  21 +
  22 +/**
  23 + * Ad-hoc unit tests for various scenarios reported by users
  24 + */
  25 +class Mockery_AdhocTest extends PHPUnit_Framework_TestCase
  26 +{
  27 +
  28 + public function setup ()
  29 + {
  30 + $this->container = new \Mockery\Container;
  31 + }
  32 +
  33 + public function teardown()
  34 + {
  35 + $this->container->mockery_close();
  36 + }
  37 +
  38 + public function testSimplestMockCreation()
  39 + {
  40 + $m = $this->container->mock('MockeryTest_NameOfExistingClass');
  41 + $this->assertTrue($m instanceof MockeryTest_NameOfExistingClass);
  42 + }
  43 +
  44 +}
  45 +
  46 +class MockeryTest_NameOfExistingClass {}

0 comments on commit 4e1f420

Please sign in to comment.
Something went wrong with that request. Please try again.