Fixed style

This commit is contained in:
Christophe Vidal
2016-06-14 08:33:07 +07:00
parent 2888ac456a
commit c8e0c74f46
8 changed files with 12 additions and 20 deletions

View File

@@ -6,12 +6,12 @@ use DesignPatterns\Structural\Flyweight\FlyweightFactory;
/**
* FlyweightTest demonstrates how a client would use the flyweight structure
* You don't have to change the code of your client
* You don't have to change the code of your client.
*/
class FlyweightTest extends \PHPUnit_Framework_TestCase
{
private $characters = array('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k',
'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z');
'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', );
private $fonts = array('Arial', 'Times New Roman', 'Verdana', 'Helvetica');
// This is about the number of characters in a book of average length
@@ -31,6 +31,6 @@ class FlyweightTest extends \PHPUnit_Framework_TestCase
// Flyweight pattern ensures that instances are shared
// instead of having hundreds of thousands of individual objects
$this->assertLessThanOrEqual($factory->totalNumber(), sizeof($this->characters));
$this->assertLessThanOrEqual($factory->totalNumber(), count($this->characters));
}
}