<?php

namespace Versionable\Tests\Prospect\Adapter;

use Versionable\Prospect\Adapter\AdapterAbstract;

/**
 * Test class for AdapterAbstract.
 * Generated by PHPUnit on 2011-04-08 at 08:43:07.
 */
class AdapterAbstractTest extends \PHPUnit_Framework_TestCase
{

  /**
   * @var AdapterAbstract
   */
  protected $object;

  /**
   * Sets up the fixture, for example, opens a network connection.
   * This method is called before a test is executed.
   */
  protected function setUp()
  {
    $this->object = $this->getMockForAbstractClass('Versionable\Prospect\Adapter\AdapterAbstract');
  }

  /**
   * Tears down the fixture, for example, closes a network connection.
   * This method is called after a test is executed.
   */
  protected function tearDown()
  {
    
  }

  /**
   * @todo Implement testSetOption().
   */
  public function testSetOption()
  {
    // Remove the following lines when you implement this test.
    $this->markTestIncomplete(
    'This test has not been implemented yet.'
    );
  }

}

?>

<?php

namespace Versionable\Tests\Prospect\Adapter;

use Versionable\Prospect\Adapter\AdapterAbstract;

/**
 * Test class for AdapterAbstract.
 * Generated by PHPUnit on 2011-04-08 at 08:43:07.
 */
class AdapterAbstractTest extends \PHPUnit_Framework_TestCase
{

  /**
   * @var AdapterAbstract
   */
  protected $object;

  /**
   * Sets up the fixture, for example, opens a network connection.
   * This method is called before a test is executed.
   */
  protected function setUp()
  {
    $this->object = $this->getMockForAbstractClass('Versionable\Prospect\Adapter\AdapterAbstract');
  }

  /**
   * Tears down the fixture, for example, closes a network connection.
   * This method is called after a test is executed.
   */
  protected function tearDown()
  {
    
  }

  /**
   * @todo Implement testSetOption().
   */
  public function testSetOption()
  {
    $this->object->setOption('foo', 'bar');
    
    $attrs = $this->readAttribute($this->object, 'options');
    
    $this->assertEquals('bar', $attrs['foo']);
  }

}


Test for setOption in AdapterAbstract
Test for setOption in AdapterAbstract
