HosipLan

Untitled

Oct 6th, 2011
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.71 KB | None | 0 0
  1. class TestTest extends Kdyby\Testing\TestCase
  2. {
  3.  
  4.     /**
  5.      * @return array
  6.      */
  7.     public function getBlendData()
  8.     {
  9.         return array(
  10.             array(
  11.                 '/var/www/libs/library/namespace/subns', 'namespace', '/var/www/libs/library/namespace',
  12.             ),
  13.             array(
  14.                 'abcdefghij', 'hijkl', 'abcdefghijkl',
  15.             ),
  16.             array(
  17.                 '/var/www/libs/library/namespace', 'namespace', '/var/www/libs/library/namespace/subns',
  18.             ),
  19.             array(
  20.                 '/var/www/libs/library/namespace', 'namespace/subns', '/var/www/libs/library/namespace/subns',
  21.             )
  22.         );
  23.     }
  24.  
  25.  
  26.  
  27.     /**
  28.      * @dataProvider getBlendData
  29.      */
  30.     public function testBlend($a, $b, $result)
  31.     {
  32.         $this->assertSame($result, Kdyby\Tools\Strings::blend($a, $b));
  33.     }
  34.  
  35. }
  36.  
Advertisement
Add Comment
Please, Sign In to add comment